[PATCH] D20793: [ELF] - Implemented support for test/binop relaxations from latest ABI.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Tue May 31 06:25:24 PDT 2016


> I do not have non-assembly use case. For this patch I used
> binutils testcase as reference (ld\testsuite\ld-x86-64\load1.s) and assumed
> it tests something from real life needs.
>
> If that is not true, we probably can do not perform relaxations for these and so far do not
> generate the special relaxations types by mc.

I think that is the case. At least I cannot imagine which code
sequence would read only part of a got entry.

So, for example, we want to handle

addq foo at gotpcrel(%rip), %rax

but don't need to handle

addl foo at gotpcrel(%rip), %eax

Cheers,
Rafael


More information about the llvm-commits mailing list