aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2011-10-19 01:52:50 +0200
committerMike Pall <mike>2011-10-19 01:52:50 +0200
commita39aac04458bccce6b674bc7995de721aeff9abf (patch)
tree1b9e764fb3e4121268f768ca0bd691ccd72ad473
parent45df079c01efbd237b7f2ae4ee3569c83769cf44 (diff)
downloadluajit-a39aac04458bccce6b674bc7995de721aeff9abf.tar.gz
luajit-a39aac04458bccce6b674bc7995de721aeff9abf.tar.bz2
luajit-a39aac04458bccce6b674bc7995de721aeff9abf.zip
Fix FOLD rule for CONV.flt.num(CONV.num.flt(x)) => x.
-rw-r--r--src/lj_opt_fold.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_opt_fold.c b/src/lj_opt_fold.c
index 1aed8cd2..e04fa480 100644
--- a/src/lj_opt_fold.c
+++ b/src/lj_opt_fold.c
@@ -931,11 +931,11 @@ LJFOLDF(simplify_conv_int_i64)
931 return NEXTFOLD; 931 return NEXTFOLD;
932} 932}
933 933
934LJFOLD(CONV CONV IRCONV_NUM_FLOAT) /* _NUM */ 934LJFOLD(CONV CONV IRCONV_FLOAT_NUM) /* _FLOAT */
935LJFOLDF(simplify_conv_flt_num) 935LJFOLDF(simplify_conv_flt_num)
936{ 936{
937 PHIBARRIER(fleft); 937 PHIBARRIER(fleft);
938 if ((fleft->op2 & IRCONV_SRCMASK) == IRT_NUM) 938 if ((fleft->op2 & IRCONV_SRCMASK) == IRT_FLOAT)
939 return fleft->op1; 939 return fleft->op1;
940 return NEXTFOLD; 940 return NEXTFOLD;
941} 941}