produce commons, fix bug with mov-extend instructions
authorceriel <none@none>
Mon, 25 Jun 1990 15:48:49 +0000 (15:48 +0000)
committerceriel <none@none>
Mon, 25 Jun 1990 15:48:49 +0000 (15:48 +0000)
mach/i386/ncg/mach.h
mach/i386/ncg/table

index 878cb01..62c007e 100644 (file)
@@ -12,7 +12,7 @@
 #define newilb(x)       fprintf(codefile,"%s:\n",x)
 #define newdlb(x)       fprintf(codefile,"%s:\n",x)
 #define dlbdlb(x,y)     fprintf(codefile,"%s = %s\n",x,y)
-#define newlbss(l,x)    fprintf(codefile,"%s: .space\t%ld\n",l,x);
+#define newlbss(l,x)    fprintf(codefile,".comm %s,%ld\n",l,x);
 
 #define cst_fmt         "%ld"
 #define off_fmt         "%ld"
index 067ca4b..0b1d59c 100644 (file)
@@ -246,10 +246,10 @@ movb rm1:wo, regorconst124:ro.
 movb REG1:wo, rm1:ro.
 movw "o16 mov" rm2:wo, regorconst124:ro cost(3,2).
 movw "o16 mov" REG2:wo, rmorconst2:ro cost(3,2).
-movsxb anyreg:wo, REG+rmorconst1:ro.
-movsx anyreg:wo, REG+rmorconst2:ro.
-movzxb anyreg:wo, REG+rmorconst1:ro.
-movzx anyreg:wo, REG+rmorconst2:ro.
+movsxb anyreg:wo, REG+rm1:ro.
+movsx anyreg:wo, REG+rm2:ro.
+movzxb anyreg:wo, REG+rm1:ro.
+movzx anyreg:wo, REG+rm2:ro.
 mul rmorconst:ro kills :cc eax edx cost(2,41).
 neg rmorconst:rw:cc.
 not rmorconst:rw.
@@ -1951,14 +1951,14 @@ pat loc loc cii loc and zne $4<65536 && $4>=0 && $5==4 && $1==2 && $2==4
 pat loc loc cii $1==1 && $2==4
 with ACC
 gen movsxb %1,%1               yields eax
-with exact rmorconst1
+with exact rm1
 uses reusing %1, GENREG
 gen movsxb %a,%1               yields %a
 
 pat loc loc cii $1==2 && $2==4
 with ACC
 gen  movsx %1,%1               yields eax
-with exact rmorconst2
+with exact rm2
 uses reusing %1,GENREG
 gen movsx %a,%1                        yields %a