Reg+%g0 is preferred to Reg+imm0 by the manual, and is what GCC produces.
Futhermore, reg+imm is invalid for the (not yet supported) "alternate address space" instructions.
Paths
| Differential D8753
Sparc: Prefer reg+reg address encoding when only one register used. ClosedPublic Authored by jyknight on Mar 31 2015, 3:14 PM.
Details Summary Reg+%g0 is preferred to Reg+imm0 by the manual, and is what GCC produces. Futhermore, reg+imm is invalid for the (not yet supported) "alternate address space" instructions.
Diff Detail
Event Timelinejyknight updated this object. Comment Actions(No real changes; just rebased to not be on top of the LDD/STD patch) This revision is now accepted and ready to land.Apr 28 2015, 7:27 PM Closed by commit rL236107: Sparc: Prefer reg+reg address encoding when only one register used. (authored by jyknight). · Explain WhyApr 29 2015, 7:58 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 23011 lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
test/MC/Disassembler/Sparc/sparc-mem.txt
test/MC/Sparc/sparc-ctrl-instructions.s
test/MC/Sparc/sparc-mem-instructions.s
|