cvsuser 04/11/27 07:13:06
Modified: imcc pcc.c
jit/i386 core.jit
Log:
remove dead JIT code; create lt op internally
Revision Changes Path
1.82 +3 -3 parrot/imcc/pcc.c
Index: pcc.c
===================================================================
RCS file: /cvs/public/parrot/imcc/pcc.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -r1.81 -r1.82
--- pcc.c 24 Nov 2004 05:01:20 -0000 1.81
+++ pcc.c 27 Nov 2004 15:13:05 -0000 1.82
@@ -782,10 +782,10 @@
regs[1] = ic16 = mk_const(str_dup("16"), 'I');
regs[2] = over1;
ins = insINS(interpreter, unit, ins, "eq", regs, 3);
- regs[0] = i3;
- regs[1] = ic16;
+ regs[0] = ic16;
+ regs[1] = i3;
regs[2] = over;
- ins = insINS(interpreter, unit, ins, "gt", regs, 3);
+ ins = insINS(interpreter, unit, ins, "lt", regs, 3);
regs[0] = i3;
regs[1] = py;
ins = insINS(interpreter, unit, ins, "setp_ind", regs, 2);
1.70 +1 -73 parrot/jit/i386/core.jit
Index: core.jit
===================================================================
RCS file: /cvs/public/parrot/jit/i386/core.jit,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- core.jit 27 Nov 2004 11:52:30 -0000 1.69
+++ core.jit 27 Nov 2004 15:13:06 -0000 1.70
@@ -1,7 +1,7 @@
;
; i386/core.jit
;
-; $Id: core.jit,v 1.69 2004/11/27 11:52:30 leo Exp $
+; $Id: core.jit,v 1.70 2004/11/27 15:13:06 leo Exp $
;
# TODO complete this
@@ -974,22 +974,6 @@
Parrot_cmp_x_xc_ic s/<_N>/_n/ s/<je>/emitm_jne/ s/<t>/NUM/ s/<c>/&NUM/
s/ISR/FSR/
}
-Parrot_gt_i_ic_ic {
- Parrot_cmp_x_xc_ic s/<_N>/_i/ s/<je>/emitm_jg/ s/<c>/*INT/ s/<t>/INT/
-}
-
-Parrot_gt_n_nc_ic {
- Parrot_cmp_x_xc_ic s/<_N>/_n/ s/<je>/emitm_ja/ s/<t>/NUM/ s/<c>/&NUM/
s/ISR/FSR/
-}
-
-Parrot_ge_i_ic_ic {
- Parrot_cmp_x_xc_ic s/<_N>/_i/ s/<je>/emitm_jnl/ s/<c>/*INT/ s/<t>/INT/
-}
-
-Parrot_ge_n_nc_ic {
- Parrot_cmp_x_xc_ic s/<_N>/_n/ s/<je>/emitm_jnb/ s/<t>/NUM/ s/<c>/&NUM/
s/ISR/FSR/
-}
-
Parrot_lt_i_ic_ic {
Parrot_cmp_x_xc_ic s/<_N>/_i/ s/<je>/emitm_jl/ s/<c>/*INT/ s/<t>/INT/
}
@@ -1033,22 +1017,6 @@
Parrot_cmp_xc_x_ic s/<_N>/_n/ s/<je>/emitm_jne/ s/<c>/&NUM/ s/ISR/FSR/
s/<t>/NUM/
}
-Parrot_gt_ic_i_ic {
- Parrot_cmp_xc_x_ic s/<_N>/_i/ s/<je>/emitm_jg/ s/<c>/*INT/ s/<t>/INT/
-}
-
-Parrot_gt_nc_n_ic {
- Parrot_cmp_xc_x_ic s/<_N>/_n/ s/<je>/emitm_ja/ s/<c>/&NUM/ s/ISR/FSR/
s/<t>/NUM/
-}
-
-Parrot_ge_ic_i_ic {
- Parrot_cmp_xc_x_ic s/<_N>/_i/ s/<je>/emitm_jnl/ s/<c>/*INT/ s/<t>/INT/
-}
-
-Parrot_ge_nc_n_ic {
- Parrot_cmp_xc_x_ic s/<_N>/_n/ s/<je>/emitm_jnb/ s/<c>/&NUM/ s/ISR/FSR/
s/<t>/NUM/
-}
-
Parrot_lt_ic_i_ic {
Parrot_cmp_xc_x_ic s/<_N>/_i/ s/<je>/emitm_jl/ s/<c>/*INT/ s/<t>/INT/
}
@@ -1098,22 +1066,6 @@
Parrot_cmp_x_x_ic s/<_N>/_n/ s/<je>/emitm_jne/ s/<typ>/NUM/ s/ISR/FSR/
}
-Parrot_gt_i_i_ic {
- Parrot_cmp_x_x_ic s/<_N>/_i/ s/<je>/emitm_jg/ s/<typ>/INT/
-}
-
-Parrot_gt_n_n_ic {
- Parrot_cmp_x_x_ic s/<_N>/_n/ s/<je>/emitm_ja/ s/<typ>/NUM/ s/ISR/FSR/
-}
-
-Parrot_ge_i_i_ic {
- Parrot_cmp_x_x_ic s/<_N>/_i/ s/<je>/emitm_jnl/ s/<typ>/INT/
-}
-
-Parrot_ge_n_n_ic {
- Parrot_cmp_x_x_ic s/<_N>/_n/ s/<je>/emitm_jnb/ s/<typ>/NUM/ s/ISR/FSR/
-}
-
Parrot_lt_i_i_ic {
Parrot_cmp_x_x_ic s/<_N>/_i/ s/<je>/emitm_jl/ s/<typ>/INT/
}
@@ -1256,30 +1208,6 @@
Parrot_cmp_sx_sx_ic s/<typ1>/c/ s/<typ2>/r/ s/<op>/emitm_jl/
}
-Parrot_ge_s_s_ic {
- Parrot_cmp_sx_sx_ic s/<typ1>/r/ s/<typ2>/r/ s/<op>/emitm_jnl/
-}
-
-Parrot_ge_s_sc_ic {
- Parrot_cmp_sx_sx_ic s/<typ1>/r/ s/<typ2>/c/ s/<op>/emitm_jnl/
-}
-
-Parrot_ge_sc_s_ic {
- Parrot_cmp_sx_sx_ic s/<typ1>/c/ s/<typ2>/r/ s/<op>/emitm_jnl/
-}
-
-Parrot_gt_s_s_ic {
- Parrot_cmp_sx_sx_ic s/<typ1>/r/ s/<typ2>/r/ s/<op>/emitm_jg/
-}
-
-Parrot_gt_s_sc_ic {
- Parrot_cmp_sx_sx_ic s/<typ1>/r/ s/<typ2>/c/ s/<op>/emitm_jg/
-}
-
-Parrot_gt_sc_s_ic {
- Parrot_cmp_sx_sx_ic s/<typ1>/c/ s/<typ2>/r/ s/<op>/emitm_jg/
-}
-
TEMPLATE Parrot_ifunless_sx_ic {
# define push_r(i) \