Browse Source

FFI: Disable MUL => BSHL FOLD rule on 32 bit.

Mike Pall 14 years ago
parent
commit
1abf5d4d26
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lj_opt_fold.c

+ 3 - 0
src/lj_opt_fold.c

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