mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-24 19:44:49 +00:00
fix rdar://8017621 - llvm-mc can't guess encoding for "push $(1000)"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113184 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9bb9fa19a5
commit
d68c474ec5
@ -636,6 +636,7 @@ ParseInstruction(StringRef Name, SMLoc NameLoc,
|
||||
.Case("repe", "rep")
|
||||
.Case("repz", "rep")
|
||||
.Case("repnz", "repne")
|
||||
.Case("push", Is64Bit ? "pushq" : "pushl")
|
||||
.Case("pushf", Is64Bit ? "pushfq" : "pushfl")
|
||||
.Case("popf", Is64Bit ? "popfq" : "popfl")
|
||||
.Case("retl", Is64Bit ? "retl" : "ret")
|
||||
|
@ -173,3 +173,8 @@ outb %al, $161
|
||||
outw %ax, $128
|
||||
// CHECK: inb $161, %al
|
||||
inb $161, %al
|
||||
|
||||
// rdar://8017621
|
||||
// CHECK: pushq $1
|
||||
push $1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user