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:
Chris Lattner 2010-09-11 16:39:16 +00:00
parent ee211d0ed6
commit dfa3c9d982
2 changed files with 12 additions and 0 deletions

View File

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

View File

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