produce commons, fix bug with mov-extend instructions
This commit is contained in:
		
							parent
							
								
									b972fea237
								
							
						
					
					
						commit
						736108572f
					
				
					 2 changed files with 7 additions and 7 deletions
				
			
		| 
						 | 
					@ -12,7 +12,7 @@
 | 
				
			||||||
#define newilb(x)       fprintf(codefile,"%s:\n",x)
 | 
					#define newilb(x)       fprintf(codefile,"%s:\n",x)
 | 
				
			||||||
#define newdlb(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 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 cst_fmt         "%ld"
 | 
				
			||||||
#define off_fmt         "%ld"
 | 
					#define off_fmt         "%ld"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -246,10 +246,10 @@ movb rm1:wo, regorconst124:ro.
 | 
				
			||||||
movb REG1:wo, rm1:ro.
 | 
					movb REG1:wo, rm1:ro.
 | 
				
			||||||
movw "o16 mov" rm2:wo, regorconst124:ro cost(3,2).
 | 
					movw "o16 mov" rm2:wo, regorconst124:ro cost(3,2).
 | 
				
			||||||
movw "o16 mov" REG2:wo, rmorconst2:ro cost(3,2).
 | 
					movw "o16 mov" REG2:wo, rmorconst2:ro cost(3,2).
 | 
				
			||||||
movsxb anyreg:wo, REG+rmorconst1:ro.
 | 
					movsxb anyreg:wo, REG+rm1:ro.
 | 
				
			||||||
movsx anyreg:wo, REG+rmorconst2:ro.
 | 
					movsx anyreg:wo, REG+rm2:ro.
 | 
				
			||||||
movzxb anyreg:wo, REG+rmorconst1:ro.
 | 
					movzxb anyreg:wo, REG+rm1:ro.
 | 
				
			||||||
movzx anyreg:wo, REG+rmorconst2:ro.
 | 
					movzx anyreg:wo, REG+rm2:ro.
 | 
				
			||||||
mul rmorconst:ro kills :cc eax edx cost(2,41).
 | 
					mul rmorconst:ro kills :cc eax edx cost(2,41).
 | 
				
			||||||
neg rmorconst:rw:cc.
 | 
					neg rmorconst:rw:cc.
 | 
				
			||||||
not rmorconst:rw.
 | 
					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
 | 
					pat loc loc cii $1==1 && $2==4
 | 
				
			||||||
with ACC
 | 
					with ACC
 | 
				
			||||||
gen movsxb %1,%1		yields eax
 | 
					gen movsxb %1,%1		yields eax
 | 
				
			||||||
with exact rmorconst1
 | 
					with exact rm1
 | 
				
			||||||
uses reusing %1, GENREG
 | 
					uses reusing %1, GENREG
 | 
				
			||||||
gen movsxb %a,%1		yields %a
 | 
					gen movsxb %a,%1		yields %a
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pat loc loc cii $1==2 && $2==4
 | 
					pat loc loc cii $1==2 && $2==4
 | 
				
			||||||
with ACC
 | 
					with ACC
 | 
				
			||||||
gen  movsx %1,%1		yields eax
 | 
					gen  movsx %1,%1		yields eax
 | 
				
			||||||
with exact rmorconst2
 | 
					with exact rm2
 | 
				
			||||||
uses reusing %1,GENREG
 | 
					uses reusing %1,GENREG
 | 
				
			||||||
gen movsx %a,%1			yields %a
 | 
					gen movsx %a,%1			yields %a
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue