Adds missing aliases for fcom and fcomp instructions without arguments.

Patch by Michael M Kuperstein!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171414 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Kevin Enderby 2013-01-02 21:20:15 +00:00
parent 23203faf0b
commit 5bf3a28b36
2 changed files with 10 additions and 0 deletions

View File

@ -1910,6 +1910,8 @@ def : InstAlias<"fmulp", (MUL_FPrST0 ST1)>;
def : InstAlias<"fdivp", (DIVR_FPrST0 ST1)>;
def : InstAlias<"fdivrp", (DIV_FPrST0 ST1)>;
def : InstAlias<"fxch", (XCH_F ST1)>;
def : InstAlias<"fcom", (COM_FST0r ST1)>;
def : InstAlias<"fcomp", (COMP_FST0r ST1)>;
def : InstAlias<"fcomi", (COM_FIr ST1)>;
def : InstAlias<"fcompi", (COM_FIPr ST1)>;
def : InstAlias<"fucom", (UCOM_Fr ST1)>;

View File

@ -3948,6 +3948,10 @@
// CHECK: encoding: [0xd9,0xca]
fxch %st(2)
// CHECK: fcom
// CHECK: encoding: [0xd8,0xd1]
fcom
// CHECK: fcom %st(2)
// CHECK: encoding: [0xd8,0xd2]
fcom %st(2)
@ -3968,6 +3972,10 @@
// CHECK: encoding: [0xda,0x15,0x78,0x56,0x34,0x12]
ficoml 0x12345678
// CHECK: fcomp
// CHECK: encoding: [0xd8,0xd9]
fcomp
// CHECK: fcomp %st(2)
// CHECK: encoding: [0xd8,0xda]
fcomp %st(2)