[kaffe] CVS kaffe (doogie): Fix 641 'use of compound as lvalue is deprecated' warnings.
Kaffe CVS
Kaffe Mailing List <kaffe@kaffe.org>
Sat Apr 3 20:56:03 2004
PatchSet 4617
Date: 2004/04/04 04:52:35
Author: doogie
Branch: HEAD
Tag: (none)
Log:
Fix 641 'use of compound as lvalue is deprecated' warnings.
Members:
ChangeLog:1.2194->1.2195
config/i386/jit3-i386.def:1.23->1.24
kaffe/kaffevm/jit3/funcs.c:1.9->1.10
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2194 kaffe/ChangeLog:1.2195
--- kaffe/ChangeLog:1.2194 Sun Apr 4 04:15:38 2004
+++ kaffe/ChangeLog Sun Apr 4 04:52:35 2004
@@ -1,5 +1,10 @@
2004-04-03 Adam Heath <doogie@debian.org>
+ * config/i386/jit3-i386.def, kaffe/kaffevm/jit3/funcs.c:
+ Fix 641 'use of compound as lvalue is deprecated' warnings.
+
+2004-04-03 Adam Heath <doogie@debian.org>
+
* kaffe/kaffevm/jni.c: Fix shadowed declaration warnings.
2004-04-03 Adam Heath <doogie@debian.org>
Index: kaffe/config/i386/jit3-i386.def
diff -u kaffe/config/i386/jit3-i386.def:1.23 kaffe/config/i386/jit3-i386.def:1.24
--- kaffe/config/i386/jit3-i386.def:1.23 Fri Mar 26 21:15:34 2004
+++ kaffe/config/i386/jit3-i386.def Sun Apr 4 04:52:37 2004
@@ -30,8 +30,8 @@
#define do_move_int(t, f) \
if ((t) != (f)) { \
- OUT = 0x89; \
- OUT = 0xC0|(f<<3)|t; \
+ OUT(0x89); \
+ OUT(0xC0|(f<<3)|t); \
debug(("movl %s,%s\n", regname(f), regname(t)));\
}
@@ -99,30 +99,30 @@
int *__counter = (int *)&(COUNTER); \
if (SAVE_EDX_EAX) { \
/* Save EAX and EDX */ \
- OUT = 0x50|REG_edx; \
- OUT = 0x50|REG_eax; \
+ OUT(0x50|REG_edx); \
+ OUT(0x50|REG_eax); \
debug(("pushl edx\n")); \
debug(("pushl eax\n")); \
} \
\
- OUT = 0x0F; \
- OUT = 0x31; \
+ OUT(0x0F); \
+ OUT(0x31); \
debug(("rdtsc\n")); \
\
- OUT = 0x29; \
- OUT = 0x05; \
- LOUT = (int)(__counter); \
+ OUT(0x29); \
+ OUT(0x05); \
+ LOUT((int)(__counter)); \
debug(("sub eax, 0x%x\n", (int)(__counter))); \
\
- OUT = 0x19; \
- OUT = 0x15; \
- LOUT = (int)(__counter + 1); \
+ OUT(0x19); \
+ OUT(0x15); \
+ LOUT((int)(__counter + 1)); \
debug(("sbb edx, 0x%x\n", (int)(__counter + 1))); \
\
if (SAVE_EDX_EAX) { \
/* Restore EAX and EDX */ \
- OUT = 0x58|REG_eax; \
- OUT = 0x58|REG_edx; \
+ OUT(0x58|REG_eax); \
+ OUT(0x58|REG_edx); \
debug(("popl eax\n")); \
debug(("popl edx\n")); \
} \
@@ -135,30 +135,30 @@
int *__counter = (int *)&(COUNTER); \
if (SAVE_EDX_EAX) { \
/* Save EAX and EDX */ \
- OUT = 0x50|REG_edx; \
- OUT = 0x50|REG_eax; \
+ OUT(0x50|REG_edx); \
+ OUT(0x50|REG_eax); \
debug(("pushl edx\n")); \
debug(("pushl eax\n")); \
} \
\
- OUT = 0x0F; \
- OUT = 0x31; \
+ OUT(0x0F); \
+ OUT(0x31); \
debug(("rdtsc\n")); \
\
- OUT = 0x01; \
- OUT = 0x05; \
- LOUT = (int)(__counter); \
+ OUT(0x01); \
+ OUT(0x05); \
+ LOUT((int)(__counter)); \
debug(("add eax, 0x%x\n", (int)(__counter))); \
\
- OUT = 0x11; \
- OUT = 0x15; \
- LOUT = (int)(__counter + 1); \
+ OUT(0x11); \
+ OUT(0x15); \
+ LOUT((int)(__counter + 1)); \
debug(("adc edx, 0x%x\n", (int)(__counter + 1))); \
\
if (SAVE_EDX_EAX) { \
/* Restore EAX and EDX */ \
- OUT = 0x58|REG_eax; \
- OUT = 0x58|REG_edx; \
+ OUT(0x58|REG_eax); \
+ OUT(0x58|REG_edx); \
debug(("popl eax\n")); \
debug(("popl edx\n")); \
} \
@@ -175,7 +175,7 @@
define_insn(nop, nop)
{
- OUT = 0x90;
+ OUT(0x90);
}
/* --------------------------------------------------------------------- */
@@ -191,58 +191,58 @@
if (xProfFlag)
{
/* Store the pointer to this function in eax */
- OUT = 0xB8|REG_eax;
+ OUT(0xB8|REG_eax);
l = (label*)newLabel();
l->type = Llong|Linternal|Labsolute;
l->to = 0;
l->at = (uintp)CODEPC;
- LOUT = 0;
+ LOUT(0);
debug(("movl #?,eax\n"));
/* Push second arg to profileArcHit */
- OUT = 0x50|REG_eax;
+ OUT(0x50|REG_eax);
debug(("pushl eax\n"));
/* Get return address from the stack */
- OUT = 0x8B;
- OUT = (REG_eax<<3)|0x44;
- OUT = 0x24;
- OUT = 0x04;
+ OUT(0x8B);
+ OUT((REG_eax<<3)|0x44);
+ OUT(0x24);
+ OUT(0x04);
debug(("movl eax,4(esp)\n"));
/* Push first arg to profileArcHit */
- OUT = 0x50|REG_eax;
+ OUT(0x50|REG_eax);
debug(("pushl eax\n"));
/* Load the address to profileArcHit */
- OUT = 0xB8|REG_eax;
- LOUT = (int)profileArcHit;
+ OUT(0xB8|REG_eax);
+ LOUT((int)profileArcHit);
debug(("movl profileArcHit,eax\n"));
/* Make the call */
- OUT = 0xFF;
- OUT = 0xD0|REG_eax;
+ OUT(0xFF);
+ OUT(0xD0|REG_eax);
debug(("call profileArcHit\n"));
/* Pop the args off */
- OUT = 0x58|REG_eax;
+ OUT(0x58|REG_eax);
debug(("popl eax\n"));
- OUT = 0x58|REG_eax;
+ OUT(0x58|REG_eax);
debug(("popl eax\n"));
}
#endif
- OUT = 0x50|REG_ebp;
- OUT = 0x89;
- OUT = 0xC0|(REG_esp<<3)|REG_ebp;
- OUT = 0x81;
- OUT = 0xE8|REG_esp;
+ OUT(0x50|REG_ebp);
+ OUT(0x89);
+ OUT(0xC0|(REG_esp<<3)|REG_ebp);
+ OUT(0x81);
+ OUT(0xE8|REG_esp);
l = (label*)const_int(1);
l->type = Lframe|Labsolute|Lgeneral;
l->at = (uintp)CODEPC;
- LOUT = 0;
+ LOUT(0);
- OUT = 0x50|REG_edi;
- OUT = 0x50|REG_esi;
- OUT = 0x50|REG_ebx;
+ OUT(0x50|REG_edi);
+ OUT(0x50|REG_esi);
+ OUT(0x50|REG_ebx);
debug(("pushl ebp\n"));
debug(("movl esp,ebp\n"));
@@ -256,9 +256,9 @@
{
profiler_start(globalMethod->totalClicks, 0);
- OUT = 0xFF;
- OUT = 0x05;
- LOUT = (int)&(globalMethod->callsCount);
+ OUT(0xFF);
+ OUT(0x05);
+ LOUT((int)&(globalMethod->callsCount));
debug(("incl 0x%x\n",(int)&(globalMethod->callsCount)));
}
#endif
@@ -266,37 +266,37 @@
#if 0
/* If this method uses IEEE, set up the mode here */
if (used_ieee_division == true) {
- OUT = 0x68;
- LOUT = 0;
- OUT = 0x68;
- LOUT = 0;
+ OUT(0x68);
+ LOUT(0);
+ OUT(0x68);
+ LOUT(0);
debug(("pushl #0\n"));
debug(("pushl #0\n"));
- OUT = 0xD9;
- OUT = 0x3C;
- OUT = 0x24;
+ OUT(0xD9);
+ OUT(0x3C);
+ OUT(0x24);
debug(("fnstcw (esp)\n"));
- OUT = 0x8B;
- OUT = (REG_eax<<3)|0x04;
- OUT = 0x24;
+ OUT(0x8B);
+ OUT((REG_eax<<3)|0x04);
+ OUT(0x24);
debug(("movl (esp),eax\n"));
- OUT = 0xB8|REG_eax;
- LOUT = IEEE_MODE;
+ OUT(0xB8|REG_eax);
+ LOUT(IEEE_MODE);
debug(("movl %d,eax\n", IEEE_MODE));
- OUT = 0x89;
- OUT = (REG_eax<<3)|0x44;
- OUT = 0x24;
- OUT = 0x04;
+ OUT(0x89);
+ OUT((REG_eax<<3)|0x44);
+ OUT(0x24);
+ OUT(0x04);
debug(("movl eax,4(esp)\n"));
- OUT = 0xD9;
- OUT = 0x6C;
- OUT = 0x24;
- OUT = 0x04;
+ OUT(0xD9);
+ OUT(0x6C);
+ OUT(0x24);
+ OUT(0x04);
debug(("fldcw 4(esp)\n"));
}
#endif
@@ -360,19 +360,19 @@
int r = rreg_int(1);
label* l = const_label(2);
- OUT = 0x39;
- OUT = 0xC0|(r<<3)|REG_esp;
+ OUT(0x39);
+ OUT(0xC0|(r<<3)|REG_esp);
debug(("cmpl esp,%s\n", regname(r)));
- OUT = 0x0F;
- OUT = 0x87;
- LOUT = 5;
+ OUT(0x0F);
+ OUT(0x87);
+ LOUT(5);
debug(("jugt +5\n"));
- OUT = 0xE8;
+ OUT(0xE8);
l->type |= Llong|Lrelative;
l->at = CODEPC;
- LOUT = 0;
+ LOUT(0);
l->from = CODEPC;
debug(("call soft_stackoverflow\n"));
}
@@ -381,24 +381,24 @@
{
label* l;
- OUT = 0x89;
- OUT = 0xC0|(REG_ebp<<3)|REG_ecx;
+ OUT(0x89);
+ OUT(0xC0|(REG_ebp<<3)|REG_ecx);
- OUT = 0x81;
- OUT = 0xE8|REG_ecx;
+ OUT(0x81);
+ OUT(0xE8|REG_ecx);
/* Remember where the framesize is to go */
l = (label*)const_int(1);
l->type = Lframe|Labsolute|Lgeneral;
l->at = (uintp)CODEPC;
- LOUT = 0;
+ LOUT(0);
- OUT = 0x81;
- OUT = 0xE8|REG_ecx;
- LOUT = 3*SLOTSIZE;
+ OUT(0x81);
+ OUT(0xE8|REG_ecx);
+ LOUT(3*SLOTSIZE);
- OUT = 0x89;
- OUT = 0xC0|(REG_ecx<<3)|REG_esp;
+ OUT(0x89);
+ OUT(0xC0|(REG_ecx<<3)|REG_esp);
debug(("movl ebp,ecx\n"));
debug(("subl #?,ecx\n"));
@@ -407,31 +407,31 @@
#if 0
if (used_ieee_division == true) {
- OUT = 0x81;
- OUT = 0xE8|REG_esp;
- LOUT = SLOTSIZE;
+ OUT(0x81);
+ OUT(0xE8|REG_esp);
+ LOUT(SLOTSIZE);
debug(("subl #%d,esp\n", SLOTSIZE));
- OUT = 0x8B;
- OUT = (REG_eax<<3)|0x04;
- OUT = 0x24;
+ OUT(0x8B);
+ OUT((REG_eax<<3)|0x04);
+ OUT(0x24);
debug(("movl (esp),eax\n"));
- OUT = 0xB8|REG_eax;
- LOUT = IEEE_MODE;
+ OUT(0xB8|REG_eax);
+ LOUT(IEEE_MODE);
debug(("movl %d,eax\n", IEEE_MODE));
- OUT = 0x89;
- OUT = (REG_eax<<3)|0x44;
- OUT = 0x24;
- OUT = 0x04;
+ OUT(0x89);
+ OUT((REG_eax<<3)|0x44);
+ OUT(0x24);
+ OUT(0x04);
debug(("movl eax,4(esp)\n"));
- OUT = 0xD9;
- OUT = 0x6C;
- OUT = 0x24;
- OUT = 0x04;
+ OUT(0xD9);
+ OUT(0x6C);
+ OUT(0x24);
+ OUT(0x04);
debug(("fldcw 4(esp)\n"));
}
#endif
@@ -460,20 +460,20 @@
/* If this method uses IEEE, restore it */
if (used_ieee_division == true) {
#if 0
- OUT = 0xD9;
- OUT = 0x2C;
- OUT = 0x24;
+ OUT(0xD9);
+ OUT(0x2C);
+ OUT(0x24);
debug(("fldcw (esp)\n"));
#endif
- OUT = 0xD9;
- OUT = 0x6C;
- OUT = 0x24;
- OUT = 0;
+ OUT(0xD9);
+ OUT(0x6C);
+ OUT(0x24);
+ OUT(0);
debug(("fldcw 0(esp)\n"));
- OUT = 0x81;
- OUT = 0xC0|REG_esp;
- LOUT = 8;
+ OUT(0x81);
+ OUT(0xC0|REG_esp);
+ LOUT(8);
debug(("addl 8,esp\n"));
}
#endif
@@ -484,12 +484,12 @@
}
#endif
- OUT = 0x58|REG_ebx;
- OUT = 0x58|REG_esi;
- OUT = 0x58|REG_edi;
- OUT = 0x89;
- OUT = 0xC0|(REG_ebp<<3)|REG_esp;
- OUT = 0x58|REG_ebp;
+ OUT(0x58|REG_ebx);
+ OUT(0x58|REG_esi);
+ OUT(0x58|REG_edi);
+ OUT(0x89);
+ OUT(0xC0|(REG_ebp<<3)|REG_esp);
+ OUT(0x58|REG_ebp);
debug(("popl ebx\n"));
debug(("popl esi\n"));
@@ -497,7 +497,7 @@
debug(("movl ebp,esp\n"));
debug(("popl ebp\n"));
- OUT = 0xC3;
+ OUT(0xC3);
debug(("ret\n"));
}
@@ -509,9 +509,9 @@
int r = sreg_int(0);
int o = const_int(1);
- OUT = 0x89;
- OUT = 0x80|(r<<3)|REG_ebp;
- LOUT = o;
+ OUT(0x89);
+ OUT(0x80|(r<<3)|REG_ebp);
+ LOUT(o);
debug(("movl %s,%d(ebp)\n", regname(r), o));
}
@@ -523,9 +523,9 @@
(void)sreg_float(0);
o = const_int(1);
- OUT = 0xD9;
- OUT = 0x98|REG_ebp;
- LOUT = o;
+ OUT(0xD9);
+ OUT(0x98|REG_ebp);
+ LOUT(o);
debug(("fstp %d(ebp)\n", o));
}
@@ -537,9 +537,9 @@
(void)sreg_double(0);
o = const_int(1);
- OUT = 0xDD;
- OUT = 0x98|REG_ebp;
- LOUT = o;
+ OUT(0xDD);
+ OUT(0x98|REG_ebp);
+ LOUT(o);
debug(("fstpl %d(ebp)\n", o));
}
@@ -552,9 +552,9 @@
r = lreg_int(0);
o = const_int(1);
- OUT = 0x8B;
- OUT = 0x80|(r<<3)|REG_ebp;
- LOUT = o;
+ OUT(0x8B);
+ OUT(0x80|(r<<3)|REG_ebp);
+ LOUT(o);
debug(("movl %d(ebp),%s\n", o, regname(r)));
}
@@ -566,9 +566,9 @@
lreg_float(0);
o = const_int(1);
- OUT = 0xD9;
- OUT = 0x80|REG_ebp;
- LOUT = o;
+ OUT(0xD9);
+ OUT(0x80|REG_ebp);
+ LOUT(o);
debug(("fld %d(ebp)\n", o));
}
@@ -580,9 +580,9 @@
r = lreg_double(0);
o = const_int(1);
- OUT = 0xDD;
- OUT = 0x80|REG_ebp;
- LOUT = o;
+ OUT(0xDD);
+ OUT(0x80|REG_ebp);
+ LOUT(o);
debug(("fldl %d(ebp) %d\n", o, r));
}
@@ -601,13 +601,13 @@
int w = wreg_int(0);
if (val == 0) {
- OUT = 0x31;
- OUT = 0xC0|(w<<3)|w;
+ OUT(0x31);
+ OUT(0xC0|(w<<3)|w);
debug(("xorl %s,%s\n", regname(w), regname(w)));
}
else {
- OUT = 0xB8|w;
- LOUT = val;
+ OUT(0xB8|w);
+ LOUT(val);
debug(("movl #%d,%s\n", val, regname(w)));
}
@@ -618,10 +618,10 @@
label* l = const_label(2);
int w = wreg_int(0);
- OUT = 0xB8|w;
+ OUT(0xB8|w);
l->type |= Llong|Labsolute;
l->at = CODEPC;
- LOUT = 0;
+ LOUT(0);
debug(("movl #%s,%s\n", getLabelName(l), regname(w)));
}
@@ -632,8 +632,8 @@
int w = wreg_int(0);
if (r != w) {
- OUT = 0x89;
- OUT = 0xC0|(r<<3)|w;
+ OUT(0x89);
+ OUT(0xC0|(r<<3)|w);
debug(("movl %s,%s\n", regname(r), regname(w)));
}
}
@@ -646,21 +646,21 @@
wreg_float(0);
if (d.d == 0.0) {
- OUT = 0xD9;
- OUT = 0xEE;
+ OUT(0xD9);
+ OUT(0xEE);
debug(("fldz\n"));
if ((d.j >> 63) & 1) {
- OUT = 0xD9;
- OUT = 0xe0;
+ OUT(0xD9);
+ OUT(0xe0);
debug(("fchs\n"));
}
}
else if (d.d == 1.0) {
- OUT = 0xD9;
- OUT = 0xE8;
+ OUT(0xD9);
+ OUT(0xE8);
debug(("fld1\n"));
}
@@ -677,9 +677,9 @@
if (or != ow) {
wreg_float(0);
- OUT = 0xD9;
- OUT = 0x80|REG_ebp;
- LOUT = or;
+ OUT(0xD9);
+ OUT(0x80|REG_ebp);
+ LOUT(or);
debug(("fld %d(ebp)\n", or));
}
@@ -693,20 +693,20 @@
wreg_double(0);
if (d.d == 0.0) {
- OUT = 0xD9;
- OUT = 0xEE;
+ OUT(0xD9);
+ OUT(0xEE);
debug(("fldz\n"));
if ((d.j >> 63) & 1) {
- OUT = 0xD9;
- OUT = 0xe0;
+ OUT(0xD9);
+ OUT(0xe0);
debug(("fchs\n"));
}
}
else if (d.d == 1.0) {
- OUT = 0xD9;
- OUT = 0xE8;
+ OUT(0xD9);
+ OUT(0xE8);
debug(("fld1\n"));
}
@@ -723,9 +723,9 @@
if (or != ow) {
wreg_double(0);
- OUT = 0xDD;
- OUT = 0x80|REG_ebp;
- LOUT = or;
+ OUT(0xDD);
+ OUT(0x80|REG_ebp);
+ LOUT(or);
debug(("fldl %d(ebp)\n", or));
}
@@ -743,8 +743,8 @@
r = rreg_int(2);
w = rwreg_int(0);
- OUT = 0x01;
- OUT = 0xC0|(r<<3)|w;
+ OUT(0x01);
+ OUT(0xC0|(r<<3)|w);
debug(("addl %s,%s\n", regname(r), regname(w)));
}
@@ -757,8 +757,8 @@
r = rreg_int(2);
w = rwreg_int(0);
- OUT = 0x11;
- OUT = 0xC0|(r<<3)|w;
+ OUT(0x11);
+ OUT(0xC0|(r<<3)|w);
debug(("adcl %s,%s\n", regname(r), regname(w)));
}
@@ -776,9 +776,9 @@
rr = rreg_float(2); /* Load slot 2 into the register stack */
wreg_float(0); /* Result will be in register stack */
- OUT = 0xD8;
- OUT = 0x80|REG_ebp;
- LOUT = rm;
+ OUT(0xD8);
+ OUT(0x80|REG_ebp);
+ LOUT(rm);
debug(("fadd %d(ebp)\n", rm));
}
@@ -791,9 +791,9 @@
rr = rreg_double(2); /* Load slot 2 into the register stack */
wreg_double(0); /* Result will be in register stack */
- OUT = 0xDC;
- OUT = 0x80|REG_ebp;
- LOUT = rm;
+ OUT(0xDC);
+ OUT(0x80|REG_ebp);
+ LOUT(rm);
debug(("faddl %d(ebp)\n", rm));
}
@@ -808,8 +808,8 @@
r = rreg_int(2);
w = rwreg_int(0);
- OUT = 0x29;
- OUT = 0xC0|(r<<3)|w;
+ OUT(0x29);
+ OUT(0xC0|(r<<3)|w);
debug(("subl %s,%s\n", regname(r), regname(w)));
}
@@ -822,8 +822,8 @@
r = rreg_int(2);
w = rwreg_int(0);
- OUT = 0x19;
- OUT = 0xC0|(r<<3)|w;
+ OUT(0x19);
+ OUT(0xC0|(r<<3)|w);
debug(("sbbl %s,%s\n", regname(r), regname(w)));
}
@@ -836,9 +836,9 @@
rr = rreg_float(2); /* Load slot 2 into the register stack */
wreg_float(0); /* Result will be in register stack */
- OUT = 0xD8;
- OUT = 0xA8|REG_ebp;
- LOUT = rm;
+ OUT(0xD8);
+ OUT(0xA8|REG_ebp);
+ LOUT(rm);
debug(("fsub %d(ebp)\n", rm));
}
@@ -851,9 +851,9 @@
rr = rreg_double(2); /* Load slot 2 into the register stack */
wreg_double(0); /* Result will be in register stack */
- OUT = 0xDC;
- OUT = 0xA8|REG_ebp;
- LOUT = rm;
+ OUT(0xDC);
+ OUT(0xA8|REG_ebp);
+ LOUT(rm);
debug(("fsubl %d(ebp)\n", rm));
}
@@ -863,8 +863,8 @@
rreg_float(2);
wreg_float(0);
- OUT = 0xD9;
- OUT = 0xe0;
+ OUT(0xD9);
+ OUT(0xe0);
debug(("fchs\n"));
}
@@ -874,8 +874,8 @@
rreg_double(2);
wreg_double(0);
- OUT = 0xD9;
- OUT = 0xe0;
+ OUT(0xD9);
+ OUT(0xe0);
debug(("fchsl\n"));
}
@@ -890,9 +890,9 @@
r = rreg_int(2);
w = rwreg_int(0);
- OUT = 0x0F;
- OUT = 0xAF;
- OUT = 0xC0|(w<<3)|r;
+ OUT(0x0F);
+ OUT(0xAF);
+ OUT(0xC0|(w<<3)|r);
debug(("imull %s,%s\n", regname(r), regname(w)));
}
@@ -905,9 +905,9 @@
rr = rreg_float(2); /* Load slot 2 into the register stack */
wreg_float(0); /* Result will be in register stack */
- OUT = 0xD8;
- OUT = 0x88|REG_ebp;
- LOUT = rm;
+ OUT(0xD8);
+ OUT(0x88|REG_ebp);
+ LOUT(rm);
debug(("fmul %d(ebp)\n", rm));
}
@@ -920,9 +920,9 @@
rr = rreg_double(2); /* Load slot 2 into the register stack */
wreg_double(0); /* Result will be in register stack */
- OUT = 0xDC;
- OUT = 0x88|REG_ebp;
- LOUT = rm;
+ OUT(0xDC);
+ OUT(0x88|REG_ebp);
+ LOUT(rm);
debug(("fmull %d(ebp)\n", rm));
}
@@ -949,43 +949,43 @@
assert(r != REG_edx);
/* special case for LONG_MIN / -1l: r == -1 ? -eax : eax / r */
- OUT = 0x83;
- OUT = 0xF8|r;
- OUT = 0xFF;
+ OUT(0x83);
+ OUT(0xF8|r);
+ OUT(0xFF);
debug(("cmp #0xFF,%s\n", regname(r)));
l1 = newLabel();
l1->type = Linternal| Llong8|Lrelative;
- OUT = 0x74;
+ OUT(0x74);
l1->at = CODEPC;
- OUT = 0;
+ OUT(0);
l1->from = CODEPC;
debug(("je neg\n"));
/* Setup EDX - should contains the sign of EAX */
do_move_int(REG_edx, REG_eax);
#if 0
- OUT = 0xC1;
- OUT = 0xF8|REG_edx;
- OUT = 31;
+ OUT(0xC1);
+ OUT(0xF8|REG_edx);
+ OUT(31);
debug(("sarl #31,edx\n"));
#else
- OUT = 0x99;
+ OUT(0x99);
debug(("cltd\n"));
#endif
- OUT = 0xF7;
- OUT = 0xF8|r;
+ OUT(0xF7);
+ OUT(0xF8|r);
debug(("idivl %s,%s\n", regname(r), regname(w)));
- OUT = 0xEB;
- OUT = 2;
+ OUT(0xEB);
+ OUT(2);
debug(("jmp +2\n"));
debug(("neg:\n"));
l1->to = CODEPC;
- OUT = 0xF7;
- OUT = 0xD8|REG_eax;
+ OUT(0xF7);
+ OUT(0xD8|REG_eax);
debug(("neg eax\n"));
}
@@ -997,9 +997,9 @@
rr = rreg_float(2); /* Load slot 2 into the register stack */
wreg_float(0); /* Result will be in register stack */
- OUT = 0xD8;
- OUT = 0xB8|REG_ebp;
- LOUT = rm;
+ OUT(0xD8);
+ OUT(0xB8|REG_ebp);
+ LOUT(rm);
debug(("fdiv %d(ebp)\n", rm));
}
@@ -1012,9 +1012,9 @@
rr = rreg_double(2); /* Load slot 2 into the register stack */
wreg_double(0); /* Result will be in register stack */
- OUT = 0xDC;
- OUT = 0xB8|REG_ebp;
- LOUT = rm;
+ OUT(0xDC);
+ OUT(0xB8|REG_ebp);
+ LOUT(rm);
debug(("fdivl %d(ebp)\n", rm));
}
@@ -1041,43 +1041,43 @@
assert(r != REG_edx);
/* special case for LONG_MIN % -1l: r == -1 ? 0 : eax / r */
- OUT = 0x83;
- OUT = 0xF8|r;
- OUT = 0xFF;
+ OUT(0x83);
+ OUT(0xF8|r);
+ OUT(0xFF);
debug(("cmp #0xFF,%s\n", regname(r)));
l1 = newLabel();
l1->type = Linternal| Llong8|Lrelative;
- OUT = 0x74;
+ OUT(0x74);
l1->at = CODEPC;
- OUT = 0;
+ OUT(0);
l1->from = CODEPC;
debug(("je const0\n"));
/* Setup EDX - should contains the sign of EAX */
do_move_int(REG_edx, REG_eax);
#if 0
- OUT = 0xC1;
- OUT = 0xF8|REG_edx;
- OUT = 31;
+ OUT(0xC1);
+ OUT(0xF8|REG_edx);
+ OUT(31);
debug(("sarl #31,edx\n"));
#else
- OUT = 0x99;
+ OUT(0x99);
debug(("cltd\n"));
#endif
- OUT = 0xF7;
- OUT = 0xF8|r;
+ OUT(0xF7);
+ OUT(0xF8|r);
debug(("idivl %s,%s\n", regname(r), regname(w)));
- OUT = 0xEB;
- OUT = 2;
+ OUT(0xEB);
+ OUT(2);
debug(("jmp +2\n"));
debug(("const0:\n"));
l1->to = CODEPC;
- OUT = 0x31;
- OUT = 0xC0|(REG_edx<<3)|REG_edx;
+ OUT(0x31);
+ OUT(0xC0|(REG_edx<<3)|REG_edx);
debug(("xorl edx,edx\n"));
/* Result is in EDX not EAX - we must force the slot register */
@@ -1096,8 +1096,8 @@
r = rreg_int(2);
w = rwreg_int(0);
- OUT = 0x21;
- OUT = 0xC0|(r<<3)|w;
+ OUT(0x21);
+ OUT(0xC0|(r<<3)|w);
debug(("andl %s,%s\n", regname(r), regname(w)));
}
@@ -1112,8 +1112,8 @@
r = rreg_int(2);
w = rwreg_int(0);
- OUT = 0x09;
- OUT = 0xC0|(r<<3)|w;
+ OUT(0x09);
+ OUT(0xC0|(r<<3)|w);
debug(("orl %s,%s\n", regname(r), regname(w)));
}
@@ -1128,8 +1128,8 @@
r = rreg_int(2);
w = rwreg_int(0);
- OUT = 0x31;
- OUT = 0xC0|(r<<3)|w;
+ OUT(0x31);
+ OUT(0xC0|(r<<3)|w);
debug(("xorl %s,%s\n", regname(r), regname(w)));
}
@@ -1148,8 +1148,8 @@
w = rwreg_int(0);
- OUT = 0xD3;
*** Patch too long, truncated ***