diff options
author | Mike Pall <mike> | 2020-05-22 03:30:55 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2020-05-22 03:30:55 +0200 |
commit | c5b8e9168bae3efb6eb0fe2d4c9466c57fa5f971 (patch) | |
tree | 05d2da1d1f3e7d94462a429c111bf559e9ab6aa2 /src | |
parent | d75e26275bdcfe95283b761ef9405841ef2d406f (diff) | |
parent | 2f3f07882fb4ad9c64967d7088461b1ca0a25d3a (diff) | |
download | luajit-c5b8e9168bae3efb6eb0fe2d4c9466c57fa5f971.tar.gz luajit-c5b8e9168bae3efb6eb0fe2d4c9466c57fa5f971.tar.bz2 luajit-c5b8e9168bae3efb6eb0fe2d4c9466c57fa5f971.zip |
Merge branch 'master' into v2.1
Diffstat (limited to '')
-rw-r--r-- | src/lj_parse.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lj_parse.c b/src/lj_parse.c index 68f3789e..33955ab8 100644 --- a/src/lj_parse.c +++ b/src/lj_parse.c | |||
@@ -853,9 +853,12 @@ static void bcemit_comp(FuncState *fs, BinOpr opr, ExpDesc *e1, ExpDesc *e2) | |||
853 | e1 = e2; e2 = eret; /* Swap operands. */ | 853 | e1 = e2; e2 = eret; /* Swap operands. */ |
854 | op = ((op-BC_ISLT)^3)+BC_ISLT; | 854 | op = ((op-BC_ISLT)^3)+BC_ISLT; |
855 | expr_toval(fs, e1); | 855 | expr_toval(fs, e1); |
856 | ra = expr_toanyreg(fs, e1); | ||
857 | rd = expr_toanyreg(fs, e2); | ||
858 | } else { | ||
859 | rd = expr_toanyreg(fs, e2); | ||
860 | ra = expr_toanyreg(fs, e1); | ||
856 | } | 861 | } |
857 | rd = expr_toanyreg(fs, e2); | ||
858 | ra = expr_toanyreg(fs, e1); | ||
859 | ins = BCINS_AD(op, ra, rd); | 862 | ins = BCINS_AD(op, ra, rd); |
860 | } | 863 | } |
861 | /* Using expr_free might cause asserts if the order is wrong. */ | 864 | /* Using expr_free might cause asserts if the order is wrong. */ |