diff options
author | Chad Rosier <mcrosier@apple.com> | 2013-04-18 23:16:12 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2013-04-18 23:16:12 +0000 |
commit | f8fb2bc2f3f8157cadfd8ec2e3a5f19eec0828e3 (patch) | |
tree | 6cd6adfe81428668f858c8979665b430e7db038f /llvm | |
parent | 274800025af0b4b401703d49fb384cf7c1b3c538 (diff) | |
download | bcm5719-llvm-f8fb2bc2f3f8157cadfd8ec2e3a5f19eec0828e3.tar.gz bcm5719-llvm-f8fb2bc2f3f8157cadfd8ec2e3a5f19eec0828e3.zip |
[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
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.td | 2 | ||||
-rw-r--r-- | llvm/test/MC/X86/intel-syntax.s | 30 |
2 files changed, 31 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td index 45aface1d25..3380d8c64ea 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.td +++ b/llvm/lib/Target/X86/X86InstrInfo.td @@ -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 diff --git a/llvm/test/MC/X86/intel-syntax.s b/llvm/test/MC/X86/intel-syntax.s index 2e4d6b940b9..c49a17e28c4 100644 --- a/llvm/test/MC/X86/intel-syntax.s +++ b/llvm/test/MC/X86/intel-syntax.s @@ -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 |