aboutsummaryrefslogtreecommitdiff
path: root/src/lj_emit_arm64.h
diff options
context:
space:
mode:
authorMike Pall <mike>2021-06-03 03:21:56 +0200
committerMike Pall <mike>2021-06-03 03:21:56 +0200
commit69138082a3166105faa8cbb25fadb1e4298686c0 (patch)
tree73c716f85f4c8c767b17e8828a667074bbb83364 /src/lj_emit_arm64.h
parenta119497becdf2894fb7fa737f106464309dd7947 (diff)
downloadluajit-69138082a3166105faa8cbb25fadb1e4298686c0.tar.gz
luajit-69138082a3166105faa8cbb25fadb1e4298686c0.tar.bz2
luajit-69138082a3166105faa8cbb25fadb1e4298686c0.zip
ARM64: More improvements to the generation of immediates.
Diffstat (limited to 'src/lj_emit_arm64.h')
-rw-r--r--src/lj_emit_arm64.h2
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. */
164static int emit_kdelta(ASMState *as, Reg rd, uint64_t k, int lim) 164static 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);