shithub: mc

Download patch

ref: abc3e11195bfa5869bf799becb1c83310471ce9e
parent: 86d5ca3e2a104ffa2cbfa85b073be79037cf34cb
author: Ori Bernstein <[email protected]>
date: Tue Dec 23 13:07:43 EST 2014

Fix trailing whitespace.

--- a/6/insns.def
+++ b/6/insns.def
@@ -20,342 +20,342 @@
     instead of 0-based. (0 is the sentinel value).
 */
 #define None .l={0},.r={0}
-Insn(Inone,     
-    "BAD_INSN",                     
+Insn(Inone,
     "BAD_INSN",
+    "BAD_INSN",
     Use(None),
     Def(None))
 /* Note, the mov instruction is specified in an overly general manner. */
-Insn(Imov,      
-    "\tmov%t %x,%x\n",              
+Insn(Imov,
+    "\tmov%t %x,%x\n",
     "\tMOV%T %X,%X\n",
     Use(.l={1}),
     Def(.l={2}))
-Insn(Imovt,      
-    "PSEUDO: TRUNCATE\n",          
+Insn(Imovt,
     "PSEUDO: TRUNCATE\n",
+    "PSEUDO: TRUNCATE\n",
     Use(.l={1}),
     Def(.l={2}))
-Insn(Imovzx,    
-    "\tmovz%1t%2t %x,%x\n",         
+Insn(Imovzx,
+    "\tmovz%1t%2t %x,%x\n",
     "\tMOV%1T%2TZX %X,%X\n",
     Use(.l={1}),
     Def(.l={2}))
-Insn(Imovsx,    
-    "\tmovs%1t%2t %x,%x\n",         
+Insn(Imovsx,
+    "\tmovs%1t%2t %x,%x\n",
     "\tMOV%1T%2TSX %X,%X\n",
     Use(.l={1}),
     Def(.l={2}))
-Insn(Irepmovsb, 
-    "\trep movsb\n",                
+Insn(Irepmovsb,
+    "\trep movsb\n",
     "\tREP MOVSB\n",
     Use(.r={Rrcx,Rrsi,Rrdi}),
     Def(None))
-Insn(Irepmovsw, 
-    "\trep movsw\n",                
+Insn(Irepmovsw,
+    "\trep movsw\n",
     "\tREP MOVSW\n",
     Use(.r={Rrcx,Rrsi,Rrdi}),
     Def(None))
-Insn(Irepmovsl, 
-    "\trep movsl\n",                
+Insn(Irepmovsl,
+    "\trep movsl\n",
     "\tREP MOVSL\n",
     Use(.r={Rrcx,Rrsi,Rrdi}),
     Def(None))
-Insn(Irepmovsq, 
-    "\trep movsq\n",                
+Insn(Irepmovsq,
+    "\trep movsq\n",
     "\tREP MOVSQ\n",
     Use(.r={Rrcx,Rrsi,Rrdi}),
     Def(None))
-Insn(Ilea,      
-    "\tlea%2t %m,%r\n",             
+Insn(Ilea,
+    "\tlea%2t %m,%r\n",
     "\tLEA%2T %M,%R\n",
     Use(.l={1}),
     Def(.l={2}))
 
-Insn(Iadd,      
-    "\tadd%t %x,%r\n",              
+Insn(Iadd,
+    "\tadd%t %x,%r\n",
     "\tADD%T %X,%R\n",
     Use(.l={1,2}),
     Def(.l={2}))
-Insn(Isub,      
-    "\tsub%t %x,%r\n",              
+Insn(Isub,
+    "\tsub%t %x,%r\n",
     "\tSUB%T %X,%R\n",
     Use(.l={1,2}),
     Def(.l={2}))
-Insn(Iimul,     
-    "\timul%t %x,%r\n",             
+Insn(Iimul,
+    "\timul%t %x,%r\n",
     "\tIMUL%T %X,%R\n",
     Use(.l={1,2}),
     Def(.l={2}))
 /* there is no imul for 8 bit values. */
 Insn(Iimul_r,
-    "\timul%t %r\n",                
+    "\timul%t %r\n",
     "\tIMUL%T %R\n",
     Use(.l={1},.r={Ral}),
     Def(.r={Rax}))
-Insn(Imul,      
-    "\tmul%t %r\n",                 
+Insn(Imul,
+    "\tmul%t %r\n",
     "\tMUL%T %R\n",
     Use(.l={1},.r={Reax}),
     Def(.r={Reax,Redx}))
-Insn(Idiv,      
-    "\tdiv%t %r\n",                 
+Insn(Idiv,
+    "\tdiv%t %r\n",
     "\tDIV%T %R\n",
     Use(.l={1},.r={Reax,Redx}),
     Def(.r={Reax,Redx}))
-Insn(Ineg,      
-    "\tneg%t %r\n",                 
+Insn(Ineg,
+    "\tneg%t %r\n",
     "\tNEG%T %R\n",
     Use(.l={1}),
     Def(.l={1}))
-Insn(Iand,      
-    "\tand%t %x,%r\n",              
+Insn(Iand,
+    "\tand%t %x,%r\n",
     "\tAND%T %X,%R\n",
     Use(.l={1,2}),
     Def(.l={2}))
-Insn(Ior,       
-    "\tor%t  %x,%r\n",              
+Insn(Ior,
+    "\tor%t  %x,%r\n",
     "\tOR%T  %X,%R\n",
     Use(.l={1,2}),
     Def(.l={2}))
-Insn(Ixor,      
-    "\txor%t %x,%r\n",              
+Insn(Ixor,
+    "\txor%t %x,%r\n",
     "\tXOR%T %X,%R\n",
     Use(.l={1,2}),
     Def(.l={2}))
-Insn(Inot,      
-    "\tnot%t %v\n",                 
+Insn(Inot,
+    "\tnot%t %v\n",
     "\tNOT%T %V\n",
     Use(.l={1}),
     Def(.l={1}))
-Insn(Ishl,      
-    "\tsal%2t %u,%r\n",             
+Insn(Ishl,
+    "\tsal%2t %u,%r\n",
     "\tSAL%2T %U,%R\n",
     Use(.l={1,2}),
     Def(.l={2}))
-Insn(Isar,      
-    "\tsar%2t %u,%r\n",             
+Insn(Isar,
+    "\tsar%2t %u,%r\n",
     "\tSAR%2T %U,%R\n",
     Use(.l={1,2}),
     Def(.l={2}))
-Insn(Ishr,      
-    "\tshr%2t %u,%r\n",             
+Insn(Ishr,
+    "\tshr%2t %u,%r\n",
     "\tSHR%2T %U,%R\n",
     Use(.l={1,2}),
     Def(.l={2}))
 
-Insn(Itest,     
-    "\ttest%t %x,%r\n",             
+Insn(Itest,
+    "\ttest%t %x,%r\n",
     "\tTEST%T %X,%R\n",
     Use(.l={1,2}),
     Def(None))
-Insn(Icmp,      
-    "\tcmp%t  %x,%r\n",             
+Insn(Icmp,
+    "\tcmp%t  %x,%r\n",
     "\tCMP%T  %2R,%1X\n",
     Use(.l={1,2}),
     Def(None))
 
-Insn(Ipush,     
-    "\tpush%t %r\n",                
+Insn(Ipush,
+    "\tpush%t %r\n",
     "\tPUSH%T %R\n",
     Use(.l={1}),
     Def(None))
-Insn(Ipop,      
-    "\tpop%t %r\n",                 
+Insn(Ipop,
+    "\tpop%t %r\n",
     "\tPOP%T %R\n",
     Use(.l={1}),
     Def(None))
 
 /* branch instructions */
-Insn(Isetz,     
-    "\tsetz  %v\n",                 
+Insn(Isetz,
+    "\tsetz  %v\n",
     "\tSETZ  %V\n",
     Use(None),
     Def(.l={1}))
-Insn(Isetnz,    
-    "\tsetnz %v\n",                 
+Insn(Isetnz,
+    "\tsetnz %v\n",
     "\tSETNZ %V\n",
     Use(None),
     Def(.l={1}))
-Insn(Isetl,     
-    "\tsetl  %v\n",                 
+Insn(Isetl,
+    "\tsetl  %v\n",
     "\tSETL  %V\n",
     Use(None),
     Def(.l={1}))
-Insn(Isetle,    
-    "\tsetle %v\n",                 
+Insn(Isetle,
+    "\tsetle %v\n",
     "\tSETLE %V\n",
     Use(None),
     Def(.l={1}))
-Insn(Isetg,     
-    "\tsetg %v\n",                  
+Insn(Isetg,
+    "\tsetg %v\n",
     "\tSETG %V\n",
     Use(None),
     Def(.l={1}))
-Insn(Isetge,    
-    "\tsetge %v\n",                 
+Insn(Isetge,
+    "\tsetge %v\n",
     "\tSETGE %V\n",
     Use(None),
     Def(.l={1}))
-Insn(Isetb,     
-    "\tsetb  %v\n",                 
+Insn(Isetb,
+    "\tsetb  %v\n",
     "\tSETB  %V\n",
     Use(None),
     Def(.l={1}))
-Insn(Isetbe,    
-    "\tsetbe %v\n",                 
+Insn(Isetbe,
+    "\tsetbe %v\n",
     "\tSETBE %V\n",
     Use(None),
     Def(.l={1}))
-Insn(Iseta,     
-    "\tseta %v\n",                  
+Insn(Iseta,
+    "\tseta %v\n",
     "\tSETA %V\n",
     Use(None),
     Def(.l={1}))
-Insn(Isetae,    
-    "\tsetae %v\n",                 
+Insn(Isetae,
+    "\tsetae %v\n",
     "\tSETAE %V\n",
     Use(None),
     Def(.l={1}))
 
 /* fp specific instructions */
-Insn(Imovs,      
-    "\tmovs%1t %x,%x\n",           
+Insn(Imovs,
+    "\tmovs%1t %x,%x\n",
     "\tMOVS%1T %X,%X\n",
     Use(.l={1}),
     Def(.l={2}))
-Insn(Icvttsd2si, 
-    "\tcvttsd2si%2t %x,%r\n",      
+Insn(Icvttsd2si,
+    "\tcvttsd2si%2t %x,%r\n",
     "\tCVTTSD2SI%2T %X,%R\n",
     Use(.l={1}),
     Def(.l={2}))
-Insn(Icvttsi2sd, 
-    "\tcvttsi2sd%2t %x,%f\n",      
+Insn(Icvttsi2sd,
+    "\tcvttsi2sd%2t %x,%f\n",
     "\tCVTTSI2SD%2T %X,%F\n",
     Use(.l={1}),
     Def(.l={2}))
-Insn(Icvttsd2ss, 
-    "\tcvtsd2ss %x,%f\n",          
+Insn(Icvttsd2ss,
+    "\tcvtsd2ss %x,%f\n",
     "\tCVTSD2SS %X,%F\n",
     Use(.l={1}),
     Def(.l={2}))
-Insn(Icvttss2sd, 
-    "\tcvtss2sd %x,%f\n",          
+Insn(Icvttss2sd,
+    "\tcvtss2sd %x,%f\n",
     "\tCVTSS2SD %X,%F\n",
     Use(.l={1}),
     Def(.l={2}))
-Insn(Iadds,      
-    "\tadds%t %x,%f\n",            
+Insn(Iadds,
+    "\tadds%t %x,%f\n",
     "\tADDS%T %X,%F\n",
     Use(.l={1,2}),
     Def(.l={2}))
-Insn(Isubs,      
-    "\tsubs%t %x,%f\n",            
+Insn(Isubs,
+    "\tsubs%t %x,%f\n",
     "\tSUBS%T %X,%F\n",
     Use(.l={1,2}),
     Def(.l={2}))
-Insn(Imuls,      
-    "\tmuls%t %x,%f\n",            
+Insn(Imuls,
+    "\tmuls%t %x,%f\n",
     "\tMULS%T %X,%F\n",
     Use(.l={1,2}),
     Def(.l={2}))
-Insn(Idivs,      
-    "\tdivs%t %x,%f\n",            
+Insn(Idivs,
+    "\tdivs%t %x,%f\n",
     "\tDIVS%T %X,%F\n",
     Use(.l={1,2}),
     Def(.l={2}))
-Insn(Icomis,     
-    "\tcomis%t %x,%f\n",           
+Insn(Icomis,
+    "\tcomis%t %x,%f\n",
     "\tCOMIS%T %X,%F\n",
     Use(.l={1,2}),
     Def(None))
-Insn(Ixorp,      
-    "\tmuls%t %x,%f\n",            
+Insn(Ixorp,
+    "\tmuls%t %x,%f\n",
     "\tMULS%T %X,%F\n",
     Use(.l={1,2}),
     Def(.l={2}))
 
 /* branch instructions */
-Insn(Icall,     
-    "\tcall %v\n",                  
+Insn(Icall,
+    "\tcall %v\n",
     "\tCALL %V\n",
     Use(.l={1}),
     Def(.r={Rrax,Reax,Rax,Ral,Rah}))
-Insn(Icallind,  
-    "\tcall *%v\n",                 
+Insn(Icallind,
+    "\tcall *%v\n",
     "\tCALL *%V\n",
     Use(.l={1}),
     Def(.r={Rrax,Reax,Rax,Ral,Rah}))
-Insn(Ijmp,      
-    "\tjmp %v\n",                   
+Insn(Ijmp,
+    "\tjmp %v\n",
     "\tJMP %V\n",
     Use(.l={1}),
     Def(None))
-Insn(Ijz,       
-    "\tjz %v\n",                    
+Insn(Ijz,
+    "\tjz %v\n",
     "\tJEQ %V\n",
     Use(.l={1}),
     Def(None))
-Insn(Ijnz,      
-    "\tjnz %v\n",                   
+Insn(Ijnz,
+    "\tjnz %v\n",
     "\tJNE %V\n",
     Use(.l={1}),
     Def(None))
-Insn(Ijl,       
-    "\tjl %v\n",                    
+Insn(Ijl,
+    "\tjl %v\n",
     "\tJLT %V\n",
     Use(.l={1}),
     Def(None))
-Insn(Ijle,      
-    "\tjle %v\n",                   
+Insn(Ijle,
+    "\tjle %v\n",
     "\tJLE %V\n",
     Use(.l={1}),
     Def(None))
-Insn(Ijg,       
-    "\tjg %v\n",                    
+Insn(Ijg,
+    "\tjg %v\n",
     "\tJG %V\n",
     Use(.l={1}),
     Def(None))
-Insn(Ijge,      
-    "\tjge %v\n",                   
+Insn(Ijge,
+    "\tjge %v\n",
     "\tJGE %V\n",
     Use(.l={1}),
     Def(None))
-Insn(Ijb,       
-    "\tjb %v\n",                    
+Insn(Ijb,
+    "\tjb %v\n",
     "\tJCS %V\n",
     Use(.l={1}),
     Def(None))
-Insn(Ijbe,      
-    "\tjbe %v\n",                   
+Insn(Ijbe,
+    "\tjbe %v\n",
     "\tJLS %V\n",
     Use(.l={1}),
     Def(None))
-Insn(Ija,       
-    "\tja %v\n",                    
+Insn(Ija,
+    "\tja %v\n",
     "\tJA %V\n",
     Use(.l={1}),
     Def(None))
-Insn(Ijae,      
-    "\tjae %v\n",                   
+Insn(Ijae,
+    "\tjae %v\n",
     "\tJAE %V\n",
     Use(.l={1}),
     Def(None))
-Insn(Iret,      
-    "\tret\n",                      
+Insn(Iret,
+    "\tret\n",
     "\tRET\n",
     Use(.r={Rrax,Rxmm0d}),
     Def(None))
 
 /* not actually insns */
-Insn(Ilbl,      
-    "%v:\n",                        
+Insn(Ilbl,
+    "%v:\n",
     "%V:\n",
     Use(None),
     Def(None))
 
-Insn(Icomment,      
-    "\t#%v\n",                        
-    "\t//%v:\n",
+Insn(Icomment,
+    "\t#%v\n",
+    "\t//%V:\n",
     Use(None),
     Def(None))