1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

fix rdar://8017621 - llvm-mc can't guess encoding for "push $(1000)"

llvm-svn: 113184
This commit is contained in:
Chris Lattner 2010-09-06 23:40:56 +00:00
parent 9f2c0da214
commit 3377802111
2 changed files with 6 additions and 0 deletions

View File

@ -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")

View File

@ -173,3 +173,8 @@ outb %al, $161
outw %ax, $128
// CHECK: inb $161, %al
inb $161, %al
// rdar://8017621
// CHECK: pushq $1
push $1