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.
Differential D8753
Sparc: Prefer reg+reg address encoding when only one register used. jyknight on Mar 31 2015, 3:14 PM. Authored by
Details 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 Timeline |