[llvm-commits] [PATCH] Add EIP/RIP to list of recognized registers in getX86SubSuperReg

Derek Schuff dschuff at google.com
Wed Oct 10 16:40:29 PDT 2012


r164919 changed getX86SubSuperRegister to assert (instead of nop) if
it received an unrecognized register argument.
This means that if you now do e.g.
BuildMI with LEA64r as the opcode and RIP as the base register, the
assert will fail in the X86AsmPrinter when it prints the operand. This
patch addresses the problem. It only supports 32<->64 bit conversions
because I believe none of the other combinations are ever meaningful.

Patch attached, please take a look.
thanks,
-Derek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: subsuperreg.diff
Type: application/octet-stream
Size: 840 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121010/2e4a3371/attachment.obj>


More information about the llvm-commits mailing list