[PATCH] D11794: Fix REPE, REPZ, REPNZ for intel syntax
Marina Yatsina via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 11 04:28:57 PDT 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL244584: [X86] Fix REPE, REPZ, REPNZ for intel syntax (authored by myatsina).
Changed prior to commit:
http://reviews.llvm.org/D11794?vs=31614&id=31789#toc
Repository:
rL LLVM
http://reviews.llvm.org/D11794
Files:
llvm/trunk/lib/Target/X86/X86InstrInfo.td
llvm/trunk/test/MC/X86/intel-syntax.s
Index: llvm/trunk/test/MC/X86/intel-syntax.s
===================================================================
--- llvm/trunk/test/MC/X86/intel-syntax.s
+++ llvm/trunk/test/MC/X86/intel-syntax.s
@@ -688,3 +688,16 @@
// CHECK: imulw $123, %bx
// CHECK: imull $123, %ebx
// CHECK: imulq $123, %rbx
+
+repe cmpsb
+repz cmpsb
+repne cmpsb
+repnz cmpsb
+// CHECK: rep
+// CHECK: cmpsb %es:(%rdi), (%rsi)
+// CHECK: rep
+// CHECK: cmpsb %es:(%rdi), (%rsi)
+// CHECK: repne
+// CHECK: cmpsb %es:(%rdi), (%rsi)
+// CHECK: repne
+// CHECK: cmpsb %es:(%rdi), (%rsi)
Index: llvm/trunk/lib/Target/X86/X86InstrInfo.td
===================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.td
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.td
@@ -2540,9 +2540,9 @@
def : MnemonicAlias<"popa", "popal", "att">, Requires<[In32BitMode]>;
def : MnemonicAlias<"pusha", "pushal", "att">, Requires<[In32BitMode]>;
-def : MnemonicAlias<"repe", "rep", "att">;
-def : MnemonicAlias<"repz", "rep", "att">;
-def : MnemonicAlias<"repnz", "repne", "att">;
+def : MnemonicAlias<"repe", "rep">;
+def : MnemonicAlias<"repz", "rep">;
+def : MnemonicAlias<"repnz", "repne">;
def : MnemonicAlias<"ret", "retw", "att">, Requires<[In16BitMode]>;
def : MnemonicAlias<"ret", "retl", "att">, Requires<[In32BitMode]>;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11794.31789.patch
Type: text/x-patch
Size: 1339 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150811/703355d7/attachment.bin>
More information about the llvm-commits
mailing list