Selaa lähdekoodia

ARM64: Fix XLOAD/XSTORE with FP operand.

Thanks to Stefan Pejic.
Mike Pall 8 vuotta sitten
vanhempi
commit
0cf78854a9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/lj_asm_arm64.h

+ 1 - 1
src/lj_asm_arm64.h

@@ -286,7 +286,7 @@ static void asm_fusexref(ASMState *as, A64Ins ai, Reg rd, IRRef ref,
 	}
 	rm = ra_alloc1(as, lref, allow);
 	rn = ra_alloc1(as, rref, rset_exclude(allow, rm));
-	emit_dnm(as, (ai^A64I_LS_R), rd, rn, rm);
+	emit_dnm(as, (ai^A64I_LS_R), (rd & 31), rn, rm);
 	return;
       }
     } else if (ir->o == IR_STRREF) {