[llvm] r179813 - [ms-inline asm] Apply the condition code mnemonic aliases to both the Intel and
Chad Rosier
mcrosier at apple.com
Thu Apr 18 16:16:12 PDT 2013
Author: mcrosier
Date: Thu Apr 18 18:16:12 2013
New Revision: 179813
URL: http://llvm.org/viewvc/llvm-project?rev=179813&view=rev
Log:
[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.
Modified:
llvm/trunk/lib/Target/X86/X86InstrInfo.td
llvm/trunk/test/MC/X86/intel-syntax.s
Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.td?rev=179813&r1=179812&r2=179813&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.td Thu Apr 18 18:16:12 2013
@@ -1921,7 +1921,7 @@ def : MnemonicAlias<"fwait", "wait",
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
Modified: llvm/trunk/test/MC/X86/intel-syntax.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/X86/intel-syntax.s?rev=179813&r1=179812&r2=179813&view=diff
==============================================================================
--- llvm/trunk/test/MC/X86/intel-syntax.s (original)
+++ llvm/trunk/test/MC/X86/intel-syntax.s Thu Apr 18 18:16:12 2013
@@ -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
More information about the llvm-commits
mailing list