aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2011-02-03 20:10:13 +0100
committerMike Pall <mike>2011-02-03 20:10:13 +0100
commit1abf5d4d26e83573d273e0f183f195cb2fd89bb6 (patch)
treee86d38b434da29b18055c0e65a8e0c3e577498b7 /src
parentdf65b8b419c12327254dec0df116c62525aaabad (diff)
downloadluajit-1abf5d4d26e83573d273e0f183f195cb2fd89bb6.tar.gz
luajit-1abf5d4d26e83573d273e0f183f195cb2fd89bb6.tar.bz2
luajit-1abf5d4d26e83573d273e0f183f195cb2fd89bb6.zip
FFI: Disable MUL => BSHL FOLD rule on 32 bit.
Diffstat (limited to 'src')
-rw-r--r--src/lj_opt_fold.c3
1 files changed, 3 insertions, 0 deletions
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)
1049{ 1049{
1050 if (ir_kint64(fright)->u64 == 0) /* i * 0 ==> 0 */ 1050 if (ir_kint64(fright)->u64 == 0) /* i * 0 ==> 0 */
1051 return INT64FOLD(0); 1051 return INT64FOLD(0);
1052#if LJ_64
1053 /* NYI: SPLIT for BSHL and 32 bit backend support. */
1052 else if (ir_kint64(fright)->u64 < 0x80000000u) 1054 else if (ir_kint64(fright)->u64 < 0x80000000u)
1053 return simplify_intmul_k(J, (int32_t)ir_kint64(fright)->u64); 1055 return simplify_intmul_k(J, (int32_t)ir_kint64(fright)->u64);
1056#endif
1054 return NEXTFOLD; 1057 return NEXTFOLD;
1055} 1058}
1056 1059