[PATCH] D33312: [Sparc] Do not encode the 2 LSBs of the address in the call instruction
Daniel Cederman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 18 03:59:09 PDT 2018
dcederman added a comment.
Herald added a subscriber: fedor.sergeev.
Sorry for the very late reply, I missed that you had commented.
It seems GNU as generates a "jmpl %g0 + imm, %o7" when the target address value is small enough, and a call with a R_SPARC_WDISP30 and the target address as a constant when it is too big. To avoid having to modify parseMEMOperand() we could use the latter method in both cases. It generates the same number of instructions and it is not commonly used.
https://reviews.llvm.org/D33312
More information about the llvm-commits
mailing list