]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Fix passing of constant args in FPRs on x64.
authorMike Pall <mike>
Wed, 14 Jul 2010 11:04:29 +0000 (13:04 +0200)
committerMike Pall <mike>
Wed, 14 Jul 2010 11:04:29 +0000 (13:04 +0200)
src/lj_asm.c

index c51cc89d4395e204e286c63c6c46e512102bdada..4070ccb392e3ea76741d5de0580c8270de29e261 100644 (file)
@@ -1348,7 +1348,7 @@ static void asm_gencall(ASMState *as, const CCallInfo *ci, IRRef *args)
     }
 #endif
     if (r) {  /* Argument is in a register. */
-      if (args[n] < ASMREF_TMP1) {
+      if (r < RID_MAX_GPR && args[n] < ASMREF_TMP1) {
        emit_loadi(as, r, ir->i);
       } else {
        lua_assert(rset_test(as->freeset, r));  /* Must have been evicted. */