forked from OSchip/llvm-project
add support for pushfd/popfd which are aliases for pushfl/popfl.
This fixes rdar://8408129 - pushfd and popfd get invalid instruction mnemonic errors llvm-svn: 113690
This commit is contained in:
parent
30561aba20
commit
b47c042e09
|
@ -633,6 +633,8 @@ ParseInstruction(StringRef Name, SMLoc NameLoc,
|
|||
.Case("pop", Is64Bit ? "popq" : "popl")
|
||||
.Case("pushf", Is64Bit ? "pushfq" : "pushfl")
|
||||
.Case("popf", Is64Bit ? "popfq" : "popfl")
|
||||
.Case("pushfd", "pushfl")
|
||||
.Case("popfd", "popfl")
|
||||
.Case("retl", Is64Bit ? "retl" : "ret")
|
||||
.Case("retq", Is64Bit ? "ret" : "retq")
|
||||
.Case("setz", "sete")
|
||||
|
|
|
@ -508,3 +508,13 @@ pop %ds
|
|||
pop %es
|
||||
// CHECK: popl %es
|
||||
// CHECK: encoding: [0x07]
|
||||
|
||||
// rdar://8408129
|
||||
pushfd
|
||||
// CHECK: pushfl
|
||||
popfd
|
||||
// CHECK: popfl
|
||||
pushfl
|
||||
// CHECK: pushfl
|
||||
popfl
|
||||
// CHECK: popfl
|
||||
|
|
Loading…
Reference in New Issue