Looks good, thanks for adding this, please commit. In the comments in lea_rsp_pattern_p() did you mean to write '8 bit' and '32 bit' displacement? http://reviews.llvm.org/D8583 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/