From 1abf5d4d26e83573d273e0f183f195cb2fd89bb6 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Thu, 3 Feb 2011 20:10:13 +0100 Subject: [PATCH] FFI: Disable MUL => BSHL FOLD rule on 32 bit. --- src/lj_opt_fold.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lj_opt_fold.c b/src/lj_opt_fold.c index 28758013..9675fca2 100644 --- a/src/lj_opt_fold.c +++ b/src/lj_opt_fold.c @@ -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; }