diff options
author | Mike Pall <mike> | 2011-10-19 01:52:50 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-10-19 01:52:50 +0200 |
commit | a39aac04458bccce6b674bc7995de721aeff9abf (patch) | |
tree | 1b9e764fb3e4121268f768ca0bd691ccd72ad473 | |
parent | 45df079c01efbd237b7f2ae4ee3569c83769cf44 (diff) | |
download | luajit-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.c | 4 |
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 | ||
934 | LJFOLD(CONV CONV IRCONV_NUM_FLOAT) /* _NUM */ | 934 | LJFOLD(CONV CONV IRCONV_FLOAT_NUM) /* _FLOAT */ |
935 | LJFOLDF(simplify_conv_flt_num) | 935 | LJFOLDF(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 | } |