Fix FP constants, and the SparcV8/2006-01-22-BitConvertLegalize.ll failure from last...
authorChris Lattner <sabre@nondot.org>
Mon, 30 Jan 2006 22:20:49 +0000 (22:20 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 30 Jan 2006 22:20:49 +0000 (22:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25819 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcISelDAGToDAG.cpp
lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp

index bddf0986ebd2fffe1aa9c23bcb8254950854a0fb..44df26b06248400e5127f9ecbc7e106fad2f7a5e 100644 (file)
@@ -291,6 +291,9 @@ SparcV8TargetLowering::SparcV8TargetLowering(TargetMachine &TM)
   setOperationAction(ISD::STACKRESTORE      , MVT::Other, Expand);
   setOperationAction(ISD::DYNAMIC_STACKALLOC, MVT::i32  , Expand);
 
+  setOperationAction(ISD::ConstantFP, MVT::f64, Expand);
+  setOperationAction(ISD::ConstantFP, MVT::f32, Expand);
+  
   setStackPointerRegisterToSaveRestore(V8::O6);
 
   if (TM.getSubtarget<SparcV8Subtarget>().isV9()) {
index bddf0986ebd2fffe1aa9c23bcb8254950854a0fb..44df26b06248400e5127f9ecbc7e106fad2f7a5e 100644 (file)
@@ -291,6 +291,9 @@ SparcV8TargetLowering::SparcV8TargetLowering(TargetMachine &TM)
   setOperationAction(ISD::STACKRESTORE      , MVT::Other, Expand);
   setOperationAction(ISD::DYNAMIC_STACKALLOC, MVT::i32  , Expand);
 
+  setOperationAction(ISD::ConstantFP, MVT::f64, Expand);
+  setOperationAction(ISD::ConstantFP, MVT::f32, Expand);
+  
   setStackPointerRegisterToSaveRestore(V8::O6);
 
   if (TM.getSubtarget<SparcV8Subtarget>().isV9()) {