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

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Oct 11 20:50:26 PDT 2012


Can you include a testcase?

On 10 October 2012 19:40, Derek Schuff <dschuff at google.com> wrote:
> 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
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



More information about the llvm-commits mailing list