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 D8745
Sparc: Prefer reg+reg address encoding when only one register used. AbandonedPublic Authored by jyknight on Mar 31 2015, 1:25 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 TimelineComment Actions (Apparently I need to cc llvm-commits the FIRST time or it doesn't DTRT. Oops...will try again.)
Revision Contents
Diff 23003 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
|