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:
Chris Lattner 2010-09-11 16:39:16 +00:00
parent 30561aba20
commit b47c042e09
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