[kaffe] CVS kaffe (robilad): added more debug information for i386 jit3
Kaffe CVS
cvs-commits at kaffe.org
Fri Apr 21 13:53:42 PDT 2006
PatchSet 7255
Date: 2006/04/21 20:34:35
Author: robilad
Branch: HEAD
Tag: (none)
Log:
added more debug information for i386 jit3
2006-04-21 Dalibor Topic <robilad at kaffe.org>
* config/i386/jit3-i386.def: Added debug output
for each defined instruction.
Members:
ChangeLog:1.4760->1.4761
config/i386/jit3-i386.def:1.31->1.32
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4760 kaffe/ChangeLog:1.4761
--- kaffe/ChangeLog:1.4760 Fri Apr 21 01:37:22 2006
+++ kaffe/ChangeLog Fri Apr 21 20:34:35 2006
@@ -1,5 +1,10 @@
2006-04-21 Dalibor Topic <robilad at kaffe.org>
+ * config/i386/jit3-i386.def: Added debug output
+ for each defined instruction.
+
+2006-04-21 Dalibor Topic <robilad at kaffe.org>
+
* TODO: Removed inflate_oneshot task.
2006-04-21 Dalibor Topic <robilad at kaffe.org>
Index: kaffe/config/i386/jit3-i386.def
diff -u kaffe/config/i386/jit3-i386.def:1.31 kaffe/config/i386/jit3-i386.def:1.32
--- kaffe/config/i386/jit3-i386.def:1.31 Fri May 6 15:24:24 2005
+++ kaffe/config/i386/jit3-i386.def Fri Apr 21 20:34:42 2006
@@ -170,11 +170,15 @@
define_insn(unimplemented, unimplemented)
{
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
KAFFEVM_ABORT();
}
define_insn(nop, nop)
{
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x90);
debug(("nop\n"));
}
@@ -185,6 +189,8 @@
{
label* l;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
if (profFlag) {
debug(("Method: %s\n", globalMethod->name->data));
}
@@ -361,6 +367,8 @@
int r = rreg_int(1);
label* l = const_label(2);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x39);
OUT(0xC0|(r<<3)|REG_esp);
debug(("cmpl esp,%s\n", regname(r)));
@@ -382,6 +390,8 @@
{
label* l;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x89);
OUT(0xC0|(REG_ebp<<3)|REG_ecx);
@@ -442,6 +452,8 @@
{
label *el;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
if( (el = KaffeJIT3_getLastEpilogueLabel()) && (el->at == (CODEPC - 4)) )
{
/*
@@ -510,6 +522,8 @@
int r = sreg_int(0);
int o = const_int(1);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x89);
OUT(0x80|(r<<3)|REG_ebp);
LOUT(o);
@@ -521,6 +535,8 @@
{
int o = const_int(1);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
(void)sreg_float(0);
OUT(0xD9);
@@ -534,6 +550,8 @@
{
int o = const_int(1);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
(void)sreg_double(0);
OUT(0xDD);
@@ -548,6 +566,8 @@
int r = lreg_int(0);
int o = const_int(1);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x8B);
OUT(0x80|(r<<3)|REG_ebp);
LOUT(o);
@@ -559,6 +579,8 @@
{
int o = const_int(1);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
lreg_float(0);
OUT(0xD9);
@@ -573,6 +595,8 @@
int r = lreg_double(0);
int o = const_int(1);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0xDD);
OUT(0x80|REG_ebp);
LOUT(o);
@@ -593,6 +617,8 @@
int val = const_int(2);
int w = wreg_int(0);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
if (val == 0) {
OUT(0x31);
OUT(0xC0|(w<<3)|w);
@@ -611,6 +637,8 @@
label* l = const_label(2);
int w = wreg_int(0);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0xB8|w);
l->type |= Llong|Labsolute;
l->at = CODEPC;
@@ -624,6 +652,8 @@
int r = rreg_int(2);
int w = wreg_int(0);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
if (r != w) {
OUT(0x89);
OUT(0xC0|(r<<3)|w);
@@ -635,6 +665,8 @@
{
jvalue d;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
d.d = const_float(2);
wreg_float(0);
@@ -667,6 +699,8 @@
int or = rslot_float(2);
int ow = wslot_float(0);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
if (or != ow) {
wreg_float(0);
@@ -682,6 +716,8 @@
{
jvalue d;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
d.d = const_double(2);
wreg_double(0);
@@ -713,6 +749,8 @@
int or = rslot_double(2);
int ow = wslot_double(0);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
if (or != ow) {
wreg_double(0);
@@ -731,6 +769,8 @@
int r;
int w;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
check_reg_01();
r = rreg_int(2);
@@ -747,6 +787,8 @@
int r;
int w;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r = rreg_int(2);
w = rwreg_int(0);
@@ -760,6 +802,8 @@
{
int rr, rm;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
/*
* XXX Order is important here... If we put slot 2 into memory and
* slot 1 into the register we get a whole bunch of excess
@@ -780,6 +824,8 @@
{
int rr, rm;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rm = rslot_double(1); /* Get slot 1 into memory */
rr = rreg_double(2); /* Load slot 2 into the register stack */
wreg_double(0); /* Result will be in register stack */
@@ -796,6 +842,8 @@
int r;
int w;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
check_reg_01();
r = rreg_int(2);
@@ -812,6 +860,8 @@
int r;
int w;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r = rreg_int(2);
w = rwreg_int(0);
@@ -825,6 +875,8 @@
{
int rr, rm;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rm = rslot_float(1); /* Get slot 1 into memory */
rr = rreg_float(2); /* Load slot 2 into the register stack */
wreg_float(0); /* Result will be in register stack */
@@ -840,6 +892,8 @@
{
int rr, rm;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rm = rslot_double(1); /* Get slot 1 into memory */
rr = rreg_double(2); /* Load slot 2 into the register stack */
wreg_double(0); /* Result will be in register stack */
@@ -853,6 +907,8 @@
define_insn(neg_float, negf_RxR)
{
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rreg_float(2);
wreg_float(0);
@@ -864,6 +920,8 @@
define_insn(neg_double, negd_RxR)
{
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rreg_double(2);
wreg_double(0);
@@ -878,6 +936,8 @@
int r;
int w;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
check_reg_01();
r = rreg_int(2);
@@ -894,6 +954,8 @@
{
int rr, rm;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rm = rslot_float(1); /* Get slot 1 into memory */
rr = rreg_float(2); /* Load slot 2 into the register stack */
wreg_float(0); /* Result will be in register stack */
@@ -909,6 +971,8 @@
{
int rr, rm;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rm = rslot_double(1); /* Get slot 1 into memory */
rr = rreg_double(2); /* Load slot 2 into the register stack */
wreg_double(0); /* Result will be in register stack */
@@ -926,6 +990,8 @@
int w;
label *l1;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
check_reg_01();
w = rwreg_int(0);
@@ -986,6 +1052,8 @@
{
int rr, rm;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rm = rslot_float(1); /* Get slot 1 into memory */
rr = rreg_float(2); /* Load slot 2 into the register stack */
wreg_float(0); /* Result will be in register stack */
@@ -1001,6 +1069,8 @@
{
int rr, rm;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rm = rslot_double(1); /* Get slot 1 into memory */
rr = rreg_double(2); /* Load slot 2 into the register stack */
wreg_double(0); /* Result will be in register stack */
@@ -1018,6 +1088,8 @@
int w;
label *l1;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
check_reg_01();
w = rwreg_int(0);
@@ -1084,6 +1156,8 @@
int r;
int w;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
check_reg_01();
r = rreg_int(2);
@@ -1100,6 +1174,8 @@
int r;
int w;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
check_reg_01();
r = rreg_int(2);
@@ -1116,6 +1192,8 @@
int r;
int w;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
check_reg_01();
r = rreg_int(2);
@@ -1132,6 +1210,8 @@
int r;
int w;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
check_reg_01();
r = rreg_ideal_int(2, REG_ecx);
@@ -1152,6 +1232,8 @@
int r;
int w;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
check_reg_01();
r = rreg_ideal_int(2, REG_ecx);
@@ -1172,6 +1254,8 @@
int r;
int w;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
check_reg_01();
r = rreg_ideal_int(2, REG_ecx);
@@ -1194,6 +1278,8 @@
int r = rreg_int(2);
int w = wreg_int(0);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x8B);
OUT(0x00|(w<<3)|r);
if (r == REG_esp) {
@@ -1207,6 +1293,8 @@
{
int r;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r = rreg_int(2);
wreg_float(0);
@@ -1220,6 +1308,8 @@
{
int r;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r = rreg_int(2);
wreg_double(0);
@@ -1234,6 +1324,8 @@
int r = rreg_int(2);
int w = rreg_int(1);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x89);
OUT(0x00|(r<<3)|w);
if (w == REG_esp) {
@@ -1247,6 +1339,8 @@
{
int w;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rreg_float(2);
w = rreg_int(1);
@@ -1260,6 +1354,8 @@
{
int w;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rreg_double(2);
w = rreg_int(1);
@@ -1276,6 +1372,8 @@
int r1 = rreg_int(1);
int r2 = rreg_int(2);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x39);
OUT(0xC0|(r2<<3)|r1);
@@ -1288,6 +1386,8 @@
{
int r;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r = rslot_int(2);
wreg_float(0);
@@ -1302,6 +1402,8 @@
{
int r;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r = rslot_int(2);
wreg_double(0);
@@ -1321,6 +1423,8 @@
{
int r;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r = rslot_long(2);
wreg_float(0);
@@ -1335,6 +1439,8 @@
{
int r;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r = rslot_long(2);
wreg_double(0);
@@ -1351,6 +1457,8 @@
{
int o = rslot_float(2);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
wreg_double(0);
OUT(0xD9);
@@ -1364,6 +1472,8 @@
{
int o;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
o = rslot_double(2);
wreg_float(0);
@@ -1380,6 +1490,8 @@
{
jint val = const_int(2);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
LOUT(val);
debug((".word %08x\n", val));
@@ -1389,6 +1501,8 @@
{
label* l = const_label(2);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
l->type |= Llong|Labsolute;
l->at = CODEPC;
LOUT(0);
@@ -1401,6 +1515,9 @@
define_insn(set_label, set_label_xxC)
{
label* l = const_label(2);
+
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
l->to = CODEPC;
}
@@ -1409,6 +1526,8 @@
label* l = const_label(1);
int bt = const_int(2);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
l->type |= Llong|Lrelative;
switch (bt) {
case ba:
@@ -1508,6 +1627,9 @@
define_insn(branch_indirect, branch_indirect_xRC)
{
int r = rreg_int(1);
+
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
assert(const_int(2) == ba);
OUT(0xFF);
@@ -1519,6 +1641,9 @@
define_insn(call_ref, call_xCC)
{
label* l = const_label(1);
+
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
assert(const_int(2) == ba);
#if defined(KAFFE_PROFILER)
@@ -1547,6 +1672,9 @@
define_insn(call, call_xRC)
{
int r = rreg_int(1);
+
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
assert(const_int(2) == ba);
#if defined(KAFFE_PROFILER)
@@ -1570,6 +1698,9 @@
define_insn(call_indirect_const, call_ind_xCC)
{
int m = const_int(1);
+
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
assert(const_int(2) == ba);
#if defined(KAFFE_PROFILER)
@@ -1594,6 +1725,8 @@
{
int r;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
if (inRegister(1, Rint|Rref)) {
r = rreg_int(1);
@@ -1614,6 +1747,8 @@
{
int r = rreg_int(1); /* Move the float into a register */
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x50|r);
debug(("pushl %s\n", regname(r)));
@@ -1623,6 +1758,8 @@
{
int o = rslot_double(1);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0xFF);
OUT(0xB0|REG_ebp);
LOUT(o+4);
@@ -1641,6 +1778,8 @@
int o = const_int(2);
o *= 4;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x81);
OUT(0xC0|REG_esp);
LOUT(o);
@@ -1650,6 +1789,8 @@
define_insn(return_int, return_Rxx)
{
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
DBG(REGFORCE,
dprintf ("return_int()\n");
);
@@ -1658,6 +1799,8 @@
define_insn(return_long, returnl_Rxx)
{
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
DBG(REGFORCE,
dprintf ("return_long()\n");
);
@@ -1667,6 +1810,8 @@
define_insn(return_float, freturn_Rxx)
{
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
DBG(REGFORCE,
dprintf ("return_float()\n");
);
@@ -1675,6 +1820,8 @@
define_insn(return_double, freturnl_Rxx)
{
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
DBG(REGFORCE,
dprintf ("return_double()\n");
);
@@ -1685,6 +1832,8 @@
{
int r;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r = rreg_int(2);
do_move_int(REG_eax, r);
}
@@ -1695,6 +1844,8 @@
int r1;
int r2;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r = seq_slot(s, 2);
r1 = _slowSlotRegister(r, Rint, rread);
r2 = _slowSlotRegister(r+1, Rint, rread);
@@ -1719,12 +1870,16 @@
define_insn(returnarg_float, freturnarg_xxR)
{
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
/* Force value into float register */
rreg_float(2);
}
define_insn(returnarg_double, freturnargl_xxR)
{
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
/* Force value into double register */
rreg_double(2);
}
@@ -1736,6 +1891,8 @@
int rw;
int v;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
check_reg_01();
v = const_int(2);
@@ -1753,6 +1910,8 @@
int rw;
int v;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
check_reg_01();
v = const_int(2);
@@ -1771,6 +1930,8 @@
int r = rreg_int(1);
int w = wreg_int(0);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
assert(r != REG_esp);
OUT(0x8B);
OUT(0x80|(w<<3)|r);
@@ -1784,6 +1945,8 @@
int r = rreg_int(2);
int w = wreg_int(0);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x0F);
OUT(0xBE);
OUT(0x00|(w<<3)|r);
@@ -1799,6 +1962,8 @@
int r = rreg_int(2);
int w = wreg_int(0);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x0F);
OUT(0xB7);
OUT(0x00|(w<<3)|r);
@@ -1814,6 +1979,8 @@
int r = rreg_int(2);
int w = wreg_int(0);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x0F);
OUT(0xBF);
OUT(0x00|(w<<3)|r);
@@ -1830,6 +1997,8 @@
int r1;
int r0;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
v = const_int(2);
r0 = rreg_int(0);
r1 = rreg_int(1);
@@ -1847,6 +2016,8 @@
int r;
int w;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
/* Can only store accumulators as bytes */
r = rreg_subint(2);
/* If we cannot get the register into the subint
@@ -1873,6 +2044,8 @@
int r = rreg_int(2);
int w = rreg_int(1);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x66);
OUT(0x89);
OUT(0x00|(r<<3)|w);
@@ -1888,6 +2061,8 @@
int r1 = rreg_int(1);
int v = const_int(2);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x81);
OUT(0xF8|r1);
LOUT(v);
@@ -1899,6 +2074,8 @@
{
int v = const_int(1);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x68);
LOUT(v);
@@ -1910,6 +2087,8 @@
int rw;
int v;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
check_reg_01();
rw = rreg_int(0);
@@ -1928,6 +2107,8 @@
label* l;
int r;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
meth = (Method*)const_int(3);
l = const_label(4);
@@ -2019,6 +2200,8 @@
label* l;
int r;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
meth = (Method*)const_int(3);
l = const_label(4);
@@ -2100,6 +2283,8 @@
{
int rw = rwreg_int(0);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x89);
OUT(0xC0|(REG_ebp<<3)|rw);
debug(("movl %s,%s\n", regname(REG_ebp), regname(rw)));
@@ -2115,6 +2300,8 @@
int rw;
int v;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rw = rwreg_int(0);
v = const_int(2);
@@ -2130,6 +2317,8 @@
int rw;
int v;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rw = rwreg_int(0);
v = const_int(2);
@@ -2145,6 +2334,8 @@
int rw;
int v;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rw = rwreg_int(0);
v = const_int(2);
@@ -2160,6 +2351,8 @@
int rw;
int v;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rw = rwreg_int(0);
v = const_int(2);
@@ -2175,6 +2368,8 @@
int rw;
int v;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rw = rwreg_int(0);
v = const_int(2);
@@ -2190,6 +2385,8 @@
int rw;
int v;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
rw = rwreg_int(0);
v = const_int(2);
@@ -2205,6 +2402,8 @@
int r;
int w;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r = rreg_int(2);
w = wreg_int(0);
@@ -2223,6 +2422,8 @@
int r1;
int r2;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r1 = rreg_int(1);
r2 = rreg_int(2);
w = wreg_int(0);
@@ -2246,6 +2447,8 @@
int r1;
int r2;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r1 = rreg_int(1);
r2 = rreg_int(2);
w = wreg_int(0);
@@ -2268,6 +2471,8 @@
int r1;
int r2;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r1 = rreg_int(1);
r2 = rreg_int(2);
w = wreg_int(0);
@@ -2291,6 +2496,8 @@
int w1;
int w2;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r = rreg_subint(2);
/* If we cannot get the register into the subint
* (it's probably global) then do it ourselves.
@@ -2322,6 +2529,8 @@
int w1;
int w2;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r = rreg_subint(2);
/* If we cannot get the register into the subint
* (it's probably global) then do it ourselves.
@@ -2354,6 +2563,8 @@
int w1;
int w2;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
r = rreg_int(2);
w1 = rreg_int(0);
w2 = rreg_int(1);
@@ -2374,6 +2585,8 @@
int o = const_int(2);
int w = wreg_int(0);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x8B);
OUT(0x05|(w<<3));
LOUT(o);
@@ -2386,6 +2599,8 @@
int r = rreg_int(1);
int o = const_int(2);
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
OUT(0x89);
OUT(0x05|(r<<3));
LOUT(o);
@@ -2399,6 +2614,8 @@
int r1;
int r0;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
/* Can only store accumulators as bytes */
r0 = rreg_subint(0);
/* If we cannot get the register into the subint
@@ -2425,6 +2642,8 @@
int r1;
int r0;
+ debug(("instr\t%s\n",__PRETTY_FUNCTION__));
+
v = const_int(2);
r1 = rreg_int(1);
*** Patch too long, truncated ***
More information about the kaffe
mailing list