[x86 asm] allow fwait alias in both At&t and Intel modes (PR21208)
authorHans Wennborg <hans@hanshq.net>
Tue, 14 Oct 2014 21:41:17 +0000 (21:41 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 14 Oct 2014 21:41:17 +0000 (21:41 +0000)
Differential Revision: http://reviews.llvm.org/D5741

llvm-svn: 219725

llvm/lib/Target/X86/X86InstrInfo.td
llvm/test/MC/X86/x86-32-ms-inline-asm.s

index cb208bd..4c55f7c 100644 (file)
@@ -2510,7 +2510,7 @@ def : MnemonicAlias<"fldcww",   "fldcw",    "att">;
 def : MnemonicAlias<"fnstcww",  "fnstcw",   "att">;
 def : MnemonicAlias<"fnstsww",  "fnstsw",   "att">;
 def : MnemonicAlias<"fucomip",  "fucompi",  "att">;
-def : MnemonicAlias<"fwait",    "wait",     "att">;
+def : MnemonicAlias<"fwait",    "wait">;
 
 
 class CondCodeAlias<string Prefix,string Suffix, string OldCond, string NewCond,
index d912915..3169033 100644 (file)
@@ -90,4 +90,8 @@ _t21:                                   ## @t21
 // CHECK: popal
 // CHECK: # encoding: [0x61]
 
+    fwait
+// CHECK: wait
+// CHECK: # encoding: [0x9b]
+
        ret