[PATCH] D37473: [X86][AsmParser] fix PR32035

coby via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 27 03:31:18 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL314295: [X86][AsmParser] fix PR32035 (authored by coby).

Changed prior to commit:
  https://reviews.llvm.org/D37473?vs=113965&id=116787#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D37473

Files:
  llvm/trunk/lib/Target/X86/X86InstrInfo.td
  llvm/trunk/test/MC/X86/intel-syntax-encoding.s


Index: llvm/trunk/test/MC/X86/intel-syntax-encoding.s
===================================================================
--- llvm/trunk/test/MC/X86/intel-syntax-encoding.s
+++ llvm/trunk/test/MC/X86/intel-syntax-encoding.s
@@ -61,6 +61,11 @@
 // CHECK: encoding: [0xf0]
 // CHECK: encoding: [0x48,0x01,0x00]
 
+// CHECK: encoding: [0x9c]
+// CHECK: encoding: [0x9d]
+pushf
+popf
+
 LBB0_3:
 // CHECK: encoding: [0xeb,A]
 	jmp	LBB0_3
Index: llvm/trunk/lib/Target/X86/X86InstrInfo.td
===================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.td
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.td
@@ -2769,6 +2769,7 @@
 def : MnemonicAlias<"popf",  "popfw", "att">, Requires<[In16BitMode]>;
 def : MnemonicAlias<"popf",  "popfl", "att">, Requires<[In32BitMode]>;
 def : MnemonicAlias<"popf",  "popfq", "att">, Requires<[In64BitMode]>;
+def : MnemonicAlias<"popf",  "popfq", "intel">, Requires<[In64BitMode]>;
 def : MnemonicAlias<"popfd", "popfl", "att">;
 
 // FIXME: This is wrong for "push reg".  "push %bx" should turn into pushw in
@@ -2780,6 +2781,7 @@
 def : MnemonicAlias<"pushf",  "pushfw", "att">, Requires<[In16BitMode]>;
 def : MnemonicAlias<"pushf",  "pushfl", "att">, Requires<[In32BitMode]>;
 def : MnemonicAlias<"pushf",  "pushfq", "att">, Requires<[In64BitMode]>;
+def : MnemonicAlias<"pushf",  "pushfq", "intel">, Requires<[In64BitMode]>;
 def : MnemonicAlias<"pushfd", "pushfl", "att">;
 
 def : MnemonicAlias<"popad",  "popal",  "intel">, Requires<[Not64BitMode]>;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37473.116787.patch
Type: text/x-patch
Size: 1531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170927/8dbb0a48/attachment.bin>


More information about the llvm-commits mailing list