diff options
Diffstat (limited to 'src/lj_emit_arm64.h')
-rw-r--r-- | src/lj_emit_arm64.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_emit_arm64.h b/src/lj_emit_arm64.h index 938486ca..00086e8a 100644 --- a/src/lj_emit_arm64.h +++ b/src/lj_emit_arm64.h | |||
@@ -163,7 +163,7 @@ nopair: | |||
163 | /* Try to find an N-step delta relative to other consts with N < lim. */ | 163 | /* Try to find an N-step delta relative to other consts with N < lim. */ |
164 | static int emit_kdelta(ASMState *as, Reg rd, uint64_t k, int lim) | 164 | static int emit_kdelta(ASMState *as, Reg rd, uint64_t k, int lim) |
165 | { | 165 | { |
166 | RegSet work = ~as->freeset & RSET_GPR; | 166 | RegSet work = (~as->freeset & RSET_GPR) | RID2RSET(RID_GL); |
167 | if (lim <= 1) return 0; /* Can't beat that. */ | 167 | if (lim <= 1) return 0; /* Can't beat that. */ |
168 | while (work) { | 168 | while (work) { |
169 | Reg r = rset_picktop(work); | 169 | Reg r = rset_picktop(work); |