[ARM] FMINNAN/FMAXNAN of f64 are not legal.
authorJames Molloy <james.molloy@arm.com>
Thu, 13 Aug 2015 17:28:26 +0000 (17:28 +0000)
committerJames Molloy <james.molloy@arm.com>
Thu, 13 Aug 2015 17:28:26 +0000 (17:28 +0000)
This was my error. We've got f32 marked as legal because they're simulated using a v2f32 instruction, but there's no equivalent for f64.

This will get test coverage imminently when D12015 lands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244916 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelLowering.cpp

index c0eb45ca043c691b203114eee0b1e275180c919b..a628b22106b99f5d3e24f87533c5925995f01e71 100644 (file)
@@ -954,8 +954,6 @@ ARMTargetLowering::ARMTargetLowering(const TargetMachine &TM,
   if (Subtarget->hasVFP3()) {
     setOperationAction(ISD::FMINNAN, MVT::f32, Legal);
     setOperationAction(ISD::FMAXNAN, MVT::f32, Legal);
-    setOperationAction(ISD::FMINNAN, MVT::f64, Legal);
-    setOperationAction(ISD::FMAXNAN, MVT::f64, Legal);
   }
   if (Subtarget->hasNEON()) {
     setOperationAction(ISD::FMINNAN, MVT::v2f32, Legal);