From 3f1f9c37986953250cbda7a7bfb7123571449be7 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Thu, 18 Apr 2013 23:16:12 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179813 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86InstrInfo.td | 2 +- test/MC/X86/intel-syntax.s | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td index 45aface1d25..3380d8c64ea 100644 --- a/lib/Target/X86/X86InstrInfo.td +++ b/lib/Target/X86/X86InstrInfo.td @@ -1921,7 +1921,7 @@ def : MnemonicAlias<"fwait", "wait", "att">; class CondCodeAlias : MnemonicAlias; + !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/test/MC/X86/intel-syntax.s b/test/MC/X86/intel-syntax.s index 2e4d6b940b9..c49a17e28c4 100644 --- a/test/MC/X86/intel-syntax.s +++ b/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