Expand SELECT (f32/f64) and FCOPYSIGN (f32/f64).
authorLauro Ramos Venancio <lauro.venancio@gmail.com>
Thu, 4 Jan 2007 14:01:38 +0000 (14:01 +0000)
committerLauro Ramos Venancio <lauro.venancio@gmail.com>
Thu, 4 Jan 2007 14:01:38 +0000 (14:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32870 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelDAGToDAG.cpp

index cf8386ce5175527b88cc00751a27f4be9ef62a8e..ef28a90004dee88c01ad9c1ee0dd16a805120d63 100644 (file)
@@ -67,6 +67,8 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
   setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i1 , Expand);
 
   setOperationAction(ISD::SELECT, MVT::i32, Expand);
+  setOperationAction(ISD::SELECT, MVT::f32, Expand);
+  setOperationAction(ISD::SELECT, MVT::f64, Expand);
 
   setOperationAction(ISD::SETCC, MVT::i32, Expand);
   setOperationAction(ISD::SETCC, MVT::f32, Expand);
@@ -104,6 +106,9 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
   setOperationAction(ISD::ConstantFP, MVT::f64, Expand);
   setOperationAction(ISD::ConstantFP, MVT::f32, Expand);
 
+  setOperationAction(ISD::FCOPYSIGN, MVT::f64, Expand);
+  setOperationAction(ISD::FCOPYSIGN, MVT::f32, Expand);
+
   setStackPointerRegisterToSaveRestore(ARM::R13);
 
   setSchedulingPreference(SchedulingForRegPressure);