diff options
author | Kevin Enderby <enderby@apple.com> | 2013-01-02 21:20:15 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2013-01-02 21:20:15 +0000 |
commit | 5bf3a28b36c5d95ad3732b749db651630027b09c (patch) | |
tree | e6477db5a16c126b5684051884ccb7d191f1e5d0 | |
parent | 23203faf0b36c263248f5b265530c56974d93c98 (diff) |
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
-rw-r--r-- | lib/Target/X86/X86InstrInfo.td | 2 | ||||
-rw-r--r-- | test/MC/X86/x86-32-coverage.s | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td index d0d236ab42..4522d895a4 100644 --- a/lib/Target/X86/X86InstrInfo.td +++ b/lib/Target/X86/X86InstrInfo.td @@ -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)>; diff --git a/test/MC/X86/x86-32-coverage.s b/test/MC/X86/x86-32-coverage.s index 0824916519..f0f360eb6b 100644 --- a/test/MC/X86/x86-32-coverage.s +++ b/test/MC/X86/x86-32-coverage.s @@ -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) |