[ms-inline asm] Apply the condition code mnemonic aliases to both the Intel and
AT&T dialect. Test case for r179804 as well. rdar://13674398 and PR13340. llvm-svn: 179813
This commit is contained in:
		
							parent
							
								
									274800025a
								
							
						
					
					
						commit
						f8fb2bc2f3
					
				| 
						 | 
				
			
			@ -1921,7 +1921,7 @@ def : MnemonicAlias<"fwait",    "wait",     "att">;
 | 
			
		|||
 | 
			
		||||
class CondCodeAlias<string Prefix,string Suffix, string OldCond, string NewCond>
 | 
			
		||||
  : MnemonicAlias<!strconcat(Prefix, OldCond, Suffix),
 | 
			
		||||
                  !strconcat(Prefix, NewCond, Suffix), "att">;
 | 
			
		||||
                  !strconcat(Prefix, NewCond, Suffix)>;
 | 
			
		||||
 | 
			
		||||
/// IntegerCondCodeMnemonicAlias - This multiclass defines a bunch of
 | 
			
		||||
/// MnemonicAlias's that canonicalize the condition code in a mnemonic, for
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -291,4 +291,34 @@ _main:
 | 
			
		|||
    mov [eax][16/-8][ebx*4], ecx
 | 
			
		||||
// CHECK: movl %ecx, -2(%eax,%ebx,4)
 | 
			
		||||
    mov [eax][(16)/-8][ebx*4], ecx
 | 
			
		||||
 | 
			
		||||
// CHECK: setb %al
 | 
			
		||||
    setc al
 | 
			
		||||
// CHECK: sete %al
 | 
			
		||||
    setz al
 | 
			
		||||
// CHECK: setbe %al
 | 
			
		||||
    setna al
 | 
			
		||||
// CHECK: setae %al
 | 
			
		||||
    setnb al
 | 
			
		||||
// CHECK: setae %al
 | 
			
		||||
    setnc al
 | 
			
		||||
// CHECK: setle %al
 | 
			
		||||
    setng al
 | 
			
		||||
// CHECK: setge %al
 | 
			
		||||
    setnl al
 | 
			
		||||
// CHECK: setne %al
 | 
			
		||||
    setnz al
 | 
			
		||||
// CHECK: setp %al
 | 
			
		||||
    setpe al
 | 
			
		||||
// CHECK: setnp %al
 | 
			
		||||
    setpo al
 | 
			
		||||
// CHECK: setb %al
 | 
			
		||||
    setnae al
 | 
			
		||||
// CHECK: seta %al
 | 
			
		||||
    setnbe al
 | 
			
		||||
// CHECK: setl %al
 | 
			
		||||
    setnge al
 | 
			
		||||
// CHECK: setg %al
 | 
			
		||||
    setnle al
 | 
			
		||||
 | 
			
		||||
    ret
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue