aboutsummaryrefslogtreecommitdiff
path: root/src/vm_x86.dasc
diff options
context:
space:
mode:
authorMike Pall <mike>2013-02-22 20:39:25 +0100
committerMike Pall <mike>2013-02-23 01:19:00 +0100
commitb359ce804bb52585815fc52d7846202db4341acb (patch)
tree47ce07e6dc9403ce9e6b775c8d2f6d77360c6605 /src/vm_x86.dasc
parentfdc0ce8debd46bdf35aaec320eef3105055e90b5 (diff)
downloadluajit-b359ce804bb52585815fc52d7846202db4341acb.tar.gz
luajit-b359ce804bb52585815fc52d7846202db4341acb.tar.bz2
luajit-b359ce804bb52585815fc52d7846202db4341acb.zip
Remove obsolete non-truncating number to integer conversions.
Diffstat (limited to '')
-rw-r--r--src/vm_x86.dasc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vm_x86.dasc b/src/vm_x86.dasc
index bf42f5d2..c8095db2 100644
--- a/src/vm_x86.dasc
+++ b/src/vm_x86.dasc
@@ -1622,7 +1622,7 @@ static void build_subroutines(BuildCtx *ctx)
1622 | movsd xmm0, qword [BASE+8] 1622 | movsd xmm0, qword [BASE+8]
1623 | sseconst_1 xmm1, RBa 1623 | sseconst_1 xmm1, RBa
1624 | addsd xmm0, xmm1 1624 | addsd xmm0, xmm1
1625 | cvtsd2si RD, xmm0 1625 | cvttsd2si RD, xmm0
1626 | movsd qword [BASE-8], xmm0 1626 | movsd qword [BASE-8], xmm0
1627 |.endif 1627 |.endif
1628 | mov TAB:RB, [BASE] 1628 | mov TAB:RB, [BASE]
@@ -1975,7 +1975,7 @@ static void build_subroutines(BuildCtx *ctx)
1975 | movsd xmm0, qword [BASE] 1975 | movsd xmm0, qword [BASE]
1976 | call ->vm_ .. func .. _sse 1976 | call ->vm_ .. func .. _sse
1977 |.if DUALNUM 1977 |.if DUALNUM
1978 | cvtsd2si RB, xmm0 1978 | cvttsd2si RB, xmm0
1979 | cmp RB, 0x80000000 1979 | cmp RB, 0x80000000
1980 | jne ->fff_resi 1980 | jne ->fff_resi
1981 | cvtsi2sd xmm1, RB 1981 | cvtsi2sd xmm1, RB
@@ -2968,7 +2968,7 @@ static void build_subroutines(BuildCtx *ctx)
2968 |// Args in xmm0/xmm1. Ret in xmm0. xmm0-xmm2 and RC (eax) modified. 2968 |// Args in xmm0/xmm1. Ret in xmm0. xmm0-xmm2 and RC (eax) modified.
2969 |// Needs 16 byte scratch area for x86. Also called from JIT code. 2969 |// Needs 16 byte scratch area for x86. Also called from JIT code.
2970 |->vm_pow_sse: 2970 |->vm_pow_sse:
2971 | cvtsd2si eax, xmm1 2971 | cvttsd2si eax, xmm1
2972 | cvtsi2sd xmm2, eax 2972 | cvtsi2sd xmm2, eax
2973 | ucomisd xmm1, xmm2 2973 | ucomisd xmm1, xmm2
2974 | jnz >8 // Branch for FP exponents. 2974 | jnz >8 // Branch for FP exponents.
@@ -4376,7 +4376,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
4376 | // Convert number to int and back and compare. 4376 | // Convert number to int and back and compare.
4377 | checknum RC, >5 4377 | checknum RC, >5
4378 | movsd xmm0, qword [BASE+RC*8] 4378 | movsd xmm0, qword [BASE+RC*8]
4379 | cvtsd2si RC, xmm0 4379 | cvttsd2si RC, xmm0
4380 | cvtsi2sd xmm1, RC 4380 | cvtsi2sd xmm1, RC
4381 | ucomisd xmm0, xmm1 4381 | ucomisd xmm0, xmm1
4382 | jne ->vmeta_tgetv // Generic numeric key? Use fallback. 4382 | jne ->vmeta_tgetv // Generic numeric key? Use fallback.
@@ -4516,7 +4516,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
4516 | // Convert number to int and back and compare. 4516 | // Convert number to int and back and compare.
4517 | checknum RC, >5 4517 | checknum RC, >5
4518 | movsd xmm0, qword [BASE+RC*8] 4518 | movsd xmm0, qword [BASE+RC*8]
4519 | cvtsd2si RC, xmm0 4519 | cvttsd2si RC, xmm0
4520 | cvtsi2sd xmm1, RC 4520 | cvtsi2sd xmm1, RC
4521 | ucomisd xmm0, xmm1 4521 | ucomisd xmm0, xmm1
4522 | jne ->vmeta_tsetv // Generic numeric key? Use fallback. 4522 | jne ->vmeta_tsetv // Generic numeric key? Use fallback.