summaryrefslogtreecommitdiff
path: root/src/lj_asm.c
diff options
context:
space:
mode:
authorMike Pall <mike>2011-01-17 01:23:04 +0100
committerMike Pall <mike>2011-01-17 01:23:04 +0100
commitf385af7084f300380167bf2261e8109927bd1e18 (patch)
tree13c2220d376ad767f73f18d23f06d1b4ae71a870 /src/lj_asm.c
parent83d8c86bbb7b6123c88e1cc43f48a077e04b4b1a (diff)
downloadluajit-f385af7084f300380167bf2261e8109927bd1e18.tar.gz
luajit-f385af7084f300380167bf2261e8109927bd1e18.tar.bz2
luajit-f385af7084f300380167bf2261e8109927bd1e18.zip
FFI: Record 64 bit integer comparisons and pointer comparisons.
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r--src/lj_asm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c
index af8ac51b..db126d74 100644
--- a/src/lj_asm.c
+++ b/src/lj_asm.c
@@ -2927,7 +2927,7 @@ static void asm_comp_(ASMState *as, IRIns *ir, int cc)
2927 IROp leftop = (IROp)(IR(lref)->o); 2927 IROp leftop = (IROp)(IR(lref)->o);
2928 Reg r64 = REX_64IR(ir, 0); 2928 Reg r64 = REX_64IR(ir, 0);
2929 int32_t imm = 0; 2929 int32_t imm = 0;
2930 lua_assert(irt_isint(ir->t) || irt_isaddr(ir->t)); 2930 lua_assert(irt_is64(ir->t) || irt_isint(ir->t) || irt_isaddr(ir->t));
2931 /* Swap constants (only for ABC) and fusable loads to the right. */ 2931 /* Swap constants (only for ABC) and fusable loads to the right. */
2932 if (irref_isk(lref) || (!irref_isk(rref) && opisfusableload(leftop))) { 2932 if (irref_isk(lref) || (!irref_isk(rref) && opisfusableload(leftop))) {
2933 if ((cc & 0xc) == 0xc) cc ^= 3; /* L <-> G, LE <-> GE */ 2933 if ((cc & 0xc) == 0xc) cc ^= 3; /* L <-> G, LE <-> GE */