aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-07-17 04:07:24 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-07-17 04:07:24 +0000
commit6055a6adb792f857fe04d8880a6cfb8914828046 (patch)
tree7b17a81a87347a71da2794338006742d9c2f2ff4 /lib
parent53448652e4046a5a254b2c18adf4dfdb3888e6f6 (diff)
downloadexternal_llvm-6055a6adb792f857fe04d8880a6cfb8914828046.tar.gz
external_llvm-6055a6adb792f857fe04d8880a6cfb8914828046.tar.bz2
external_llvm-6055a6adb792f857fe04d8880a6cfb8914828046.zip
One more operation expansion for MIPS, from test/CodeGen/Generic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76149 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/Mips/MipsISelLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp
index 2fb60839d6..400e0ca8a5 100644
--- a/lib/Target/Mips/MipsISelLowering.cpp
+++ b/lib/Target/Mips/MipsISelLowering.cpp
@@ -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,