From cd3526b6b5c7679332cbc945f6fbfe01ecf48855 Mon Sep 17 00:00:00 2001 From: Frode Solheim Date: Sun, 6 Sep 2015 22:40:34 +0200 Subject: [PATCH] JIT: removed unused cmov_b_rr, cmov_w_rr --- jit/codegen_x86.cpp | 30 ------------------------------ jit/compemu_midfunc_x86.cpp | 26 -------------------------- 2 files changed, 56 deletions(-) diff --git a/jit/codegen_x86.cpp b/jit/codegen_x86.cpp index f2ae84be..9802ccc2 100644 --- a/jit/codegen_x86.cpp +++ b/jit/codegen_x86.cpp @@ -1728,36 +1728,6 @@ LOWFUNC(READ,WRITE,2,raw_setcc_m,(MEMW d, IMM cc)) } LENDFUNC(READ,WRITE,2,raw_setcc_m,(MEMW d, IMM cc)) -LOWFUNC(READ,NONE,3,raw_cmov_b_rr,(RW1 d, R1 s, IMM cc)) -{ - /* replacement using branch and mov */ - int uncc=(cc^1); - emit_byte(0x70+uncc); - emit_byte(3); /* skip next 2 bytes if not cc=true */ - emit_byte(0x88); - emit_byte(0xc0+8*s+d); -} -LENDFUNC(READ,NONE,3,raw_cmov_b_rr,(RW1 d, R1 s, IMM cc)) - -LOWFUNC(READ,NONE,3,raw_cmov_w_rr,(RW2 d, R2 s, IMM cc)) -{ - if (have_cmov) { - emit_byte(0x66); - emit_byte(0x0f); - emit_byte(0x40+cc); - emit_byte(0xc0+8*d+s); - } - else { /* replacement using branch and mov */ - int uncc=(cc^1); - emit_byte(0x70+uncc); - emit_byte(3); /* skip next 3 bytes if not cc=true */ - emit_byte(0x66); - emit_byte(0x89); - emit_byte(0xc0+8*s+d); - } -} -LENDFUNC(READ,NONE,3,raw_cmov_w_rr,(RW2 d, R2 s, IMM cc)) - LOWFUNC(READ,NONE,3,raw_cmov_l_rr,(RW4 d, R4 s, IMM cc)) { if (have_cmov) { diff --git a/jit/compemu_midfunc_x86.cpp b/jit/compemu_midfunc_x86.cpp index 6c3f5863..214e9e9b 100644 --- a/jit/compemu_midfunc_x86.cpp +++ b/jit/compemu_midfunc_x86.cpp @@ -738,32 +738,6 @@ MIDFUNC(2,setcc_m,(IMM d, IMM cc)) } MENDFUNC(2,setcc_m,(IMM d, IMM cc)) -MIDFUNC(3,cmov_b_rr,(RW1 d, RR1 s, IMM cc)) -{ - if (d==s) - return; - CLOBBER_CMOV; - s=readreg(s,1); - d=rmw(d,1,1); - raw_cmov_b_rr(d,s,cc); - unlock2(s); - unlock2(d); -} -MENDFUNC(3,cmov_b_rr,(RW1 d, RR1 s, IMM cc)) - -MIDFUNC(3,cmov_w_rr,(RW2 d, RR2 s, IMM cc)) -{ - if (d==s) - return; - CLOBBER_CMOV; - s=readreg(s,2); - d=rmw(d,2,2); - raw_cmov_w_rr(d,s,cc); - unlock2(s); - unlock2(d); -} -MENDFUNC(3,cmov_w_rr,(RW2 d, RR2 s, IMM cc)) - MIDFUNC(3,cmov_l_rr,(RW4 d, RR4 s, IMM cc)) { if (d==s) -- 2.47.3