mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
add support for pushfd/popfd which are aliases for pushfl/popfl.
This fixes rdar://8408129 - pushfd and popfd get invalid instruction mnemonic errors git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113690 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ee211d0ed6
commit
dfa3c9d982
@ -633,6 +633,8 @@ ParseInstruction(StringRef Name, SMLoc NameLoc,
|
|||||||
.Case("pop", Is64Bit ? "popq" : "popl")
|
.Case("pop", Is64Bit ? "popq" : "popl")
|
||||||
.Case("pushf", Is64Bit ? "pushfq" : "pushfl")
|
.Case("pushf", Is64Bit ? "pushfq" : "pushfl")
|
||||||
.Case("popf", Is64Bit ? "popfq" : "popfl")
|
.Case("popf", Is64Bit ? "popfq" : "popfl")
|
||||||
|
.Case("pushfd", "pushfl")
|
||||||
|
.Case("popfd", "popfl")
|
||||||
.Case("retl", Is64Bit ? "retl" : "ret")
|
.Case("retl", Is64Bit ? "retl" : "ret")
|
||||||
.Case("retq", Is64Bit ? "ret" : "retq")
|
.Case("retq", Is64Bit ? "ret" : "retq")
|
||||||
.Case("setz", "sete")
|
.Case("setz", "sete")
|
||||||
|
@ -508,3 +508,13 @@ pop %ds
|
|||||||
pop %es
|
pop %es
|
||||||
// CHECK: popl %es
|
// CHECK: popl %es
|
||||||
// CHECK: encoding: [0x07]
|
// CHECK: encoding: [0x07]
|
||||||
|
|
||||||
|
// rdar://8408129
|
||||||
|
pushfd
|
||||||
|
// CHECK: pushfl
|
||||||
|
popfd
|
||||||
|
// CHECK: popfl
|
||||||
|
pushfl
|
||||||
|
// CHECK: pushfl
|
||||||
|
popfl
|
||||||
|
// CHECK: popfl
|
||||||
|
Loading…
Reference in New Issue
Block a user