One more operation expansion for MIPS, from test/CodeGen/Generic.
authorEli Friedman <eli.friedman@gmail.com>
Fri, 17 Jul 2009 04:07:24 +0000 (04:07 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 17 Jul 2009 04:07:24 +0000 (04:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76149 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsISelLowering.cpp

index 2fb60839d63e100ec743d1f66c037ea4c23b3515..400e0ca8a5b9e3f50361ccba026e621f0e810877 100644 (file)
@@ -83,8 +83,9 @@ MipsTargetLowering(MipsTargetMachine &TM): TargetLowering(TM)
   setLoadExtAction(ISD::ZEXTLOAD, MVT::i1,  Promote);
   setLoadExtAction(ISD::SEXTLOAD, MVT::i1,  Promote);
 
-  // MIPS doesn't have extending float->double load (?)
+  // MIPS doesn't have extending float->double load/store
   setLoadExtAction(ISD::EXTLOAD, MVT::f32, Expand);
+  setTruncStoreAction(MVT::f64, MVT::f32, Expand);
 
   // Used by legalize types to correctly generate the setcc result. 
   // Without this, every float setcc comes with a AND/OR with the result,