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 | 4f3ff1b9e8c1e48f134de8dea355f4b89af0a39d (patch) | |
tree | 2183ab848ac8897dd055b8cb0523445e570b696a /llvm/lib/Target/Mips/MipsSEISelLowering.cpp | |
parent | 5a942e6fd0feb4aaee15b237d59c54ed684b99b2 (diff) | |
download | bcm5719-llvm-4f3ff1b9e8c1e48f134de8dea355f4b89af0a39d.tar.gz bcm5719-llvm-4f3ff1b9e8c1e48f134de8dea355f4b89af0a39d.zip |
[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.
llvm-svn: 191296
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSEISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsSEISelLowering.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsSEISelLowering.cpp b/llvm/lib/Target/Mips/MipsSEISelLowering.cpp index ef2217c56ac..30774540eeb 100644 --- a/llvm/lib/Target/Mips/MipsSEISelLowering.cpp +++ b/llvm/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); |