Skip to content

Commit

Permalink
In PowerPC ncg, switch the scratch register from r11 to r0.
Browse files Browse the repository at this point in the history
r0 is a special case and can't be used when adding a register to a
constant.  The few remaining users of the scratch register don't do
that.  I removed other usages of the scratch register in 7c64dab,
5b5f774, 19f0eb8, f64b7d8.
  • Loading branch information
kernigh committed Jan 26, 2017
1 parent 1dfd552 commit c416889
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mach/powerpc/ncg/table
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ INT64 = 8
FP_OFFSET = 0 /* Offset of saved FP relative to our FP */
PC_OFFSET = 4 /* Offset of saved PC relative to our FP */

#define COMMENT(n) /* comment {LABEL, n} */
#define COMMENT(n) comment {LABEL, n}


#define nicesize(x) ((x)==INT8 || (x)==INT16 || (x)==INT32 || (x)==INT64)
Expand Down Expand Up @@ -74,7 +74,7 @@ REGISTERS
R14("r14") : GPR, REG, GPR14 regvar.
R13("r13") : GPR, REG, GPR13 regvar.
R12("r12") : GPR, REG, GPR12.
R11("r11") : GPR, GPR11.
R11("r11") : GPR, REG, GPR11.
R10("r10") : GPR, REG, GPR10.
R9("r9") : GPR, REG, GPR9.
R8("r8") : GPR, REG, GPR8.
Expand Down Expand Up @@ -149,7 +149,7 @@ REGISTERS
CTR("ctr") : SPR.
CR0("cr0") : CR.

#define RSCRATCH R11
#define RSCRATCH R0
#define FSCRATCH F0


Expand Down

0 comments on commit c416889

Please sign in to comment.