Browse Source

ARM: Fix code generation for type-check only softfp [AHUV]LOAD.

Mike Pall 13 years ago
parent
commit
4bcf2b40fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lj_asm_arm.h

+ 1 - 1
src/lj_asm_arm.h

@@ -851,7 +851,7 @@ static void asm_ahuvload(ASMState *as, IRIns *ir)
     rset_clear(allow, dest);
   }
   idx = asm_fuseahuref(as, ir->op1, &ofs, allow);
-  if (!hiop) {
+  if (!hiop || type == RID_NONE) {
     rset_clear(allow, idx);
     if (ofs < 256 && ra_hasreg(dest) && (dest & 1) == 0 &&
 	rset_test((as->freeset & allow), dest+1)) {