diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-07-17 04:07:24 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-07-17 04:07:24 +0000 |
commit | 1fa07e1aeaac2347e549056093bbc60dac4f7941 (patch) | |
tree | 8e2178171bce15400d599faa08fff00e5628bd40 /llvm | |
parent | d0ed53e711448baf0a7f2fae3a341f52fb02a449 (diff) | |
download | bcm5719-llvm-1fa07e1aeaac2347e549056093bbc60dac4f7941.tar.gz bcm5719-llvm-1fa07e1aeaac2347e549056093bbc60dac4f7941.zip |
One more operation expansion for MIPS, from test/CodeGen/Generic.
llvm-svn: 76149
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Target/Mips/MipsISelLowering.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp index 2fb60839d63..400e0ca8a5b 100644 --- a/llvm/lib/Target/Mips/MipsISelLowering.cpp +++ b/llvm/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, |