]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
FFI: Disable MUL => BSHL FOLD rule on 32 bit.
authorMike Pall <mike>
Thu, 3 Feb 2011 19:10:13 +0000 (20:10 +0100)
committerMike Pall <mike>
Thu, 3 Feb 2011 19:10:13 +0000 (20:10 +0100)
src/lj_opt_fold.c

index 287580134a756b8433fcf499ba483bb499c74b6b..9675fca2ff8a1c553ec28b12e996f3c5959fec66 100644 (file)
@@ -1049,8 +1049,11 @@ LJFOLDF(simplify_intmul_k64)
 {
   if (ir_kint64(fright)->u64 == 0)  /* i * 0 ==> 0 */
     return INT64FOLD(0);
+#if LJ_64
+  /* NYI: SPLIT for BSHL and 32 bit backend support. */
   else if (ir_kint64(fright)->u64 < 0x80000000u)
     return simplify_intmul_k(J, (int32_t)ir_kint64(fright)->u64);
+#endif
   return NEXTFOLD;
 }