mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-11 05:17:36 +00:00
[X86] Fix REPE, REPZ, REPNZ for intel syntax
REPE, REPZ, REPNZ, REPNE should have mnemonics for Intel syntax as well. Currently using these instructions causes compilation errors for Intel syntax. Differential Revision: http://reviews.llvm.org/D11794 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244584 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b54962b9a0
commit
f815c87d9b
@ -2540,9 +2540,9 @@ def : MnemonicAlias<"pusha", "pushaw", "att">, Requires<[In16BitMode]>;
|
||||
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]>;
|
||||
|
@ -688,3 +688,16 @@ imul rbx, 123
|
||||
// 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user