diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2013-09-24 13:02:08 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2013-09-24 13:02:08 +0000 |
commit | 421dcc59212a73b82141caa2c94ea340a7b34deb (patch) | |
tree | 81e5df49bee43b0e171a07917f9124da1dacd823 /lib/Target/Mips/MipsSEISelLowering.cpp | |
parent | 930f2b51084c6dac1238b8b0f8dd11f40f619694 (diff) | |
download | llvm-421dcc59212a73b82141caa2c94ea340a7b34deb.tar.gz llvm-421dcc59212a73b82141caa2c94ea340a7b34deb.tar.bz2 llvm-421dcc59212a73b82141caa2c94ea340a7b34deb.tar.xz |
[mips][msa] Added partial support for matching fmax_a from normal IR (i.e. not intrinsics)
This covers the case where fmax_a can be used to implement ISD::FABS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191296 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsSEISelLowering.cpp')
-rw-r--r-- | lib/Target/Mips/MipsSEISelLowering.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsSEISelLowering.cpp b/lib/Target/Mips/MipsSEISelLowering.cpp index ef2217c56a..30774540ee 100644 --- a/lib/Target/Mips/MipsSEISelLowering.cpp +++ b/lib/Target/Mips/MipsSEISelLowering.cpp @@ -206,6 +206,7 @@ addMSAFloatType(MVT::SimpleValueType Ty, const TargetRegisterClass *RC) { setOperationAction(ISD::EXTRACT_VECTOR_ELT, Ty, Legal); if (Ty != MVT::v8f16) { + setOperationAction(ISD::FABS, Ty, Legal); setOperationAction(ISD::FADD, Ty, Legal); setOperationAction(ISD::FDIV, Ty, Legal); setOperationAction(ISD::FLOG2, Ty, Legal); |