From a7521ee3df1c8b00eb86d546557d3f10e16771e4 Mon Sep 17 00:00:00 2001 From: Scott Michel Date: Thu, 20 Nov 2008 05:01:09 +0000 Subject: CellSPU: Custom lower truncating stores of i8 to i1 (should not have been promote), fix signed conversion of indexed offsets. llvm-svn: 59707 --- llvm/lib/Target/CellSPU/SPUISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/CellSPU/SPUISelLowering.cpp') diff --git a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp b/llvm/lib/Target/CellSPU/SPUISelLowering.cpp index 002ef3f6612..1ed3bab733b 100644 --- a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp +++ b/llvm/lib/Target/CellSPU/SPUISelLowering.cpp @@ -134,7 +134,7 @@ SPUTargetLowering::SPUTargetLowering(SPUTargetMachine &TM) setLoadExtAction(ISD::EXTLOAD, MVT::i1, Promote); setLoadExtAction(ISD::SEXTLOAD, MVT::i1, Promote); setLoadExtAction(ISD::ZEXTLOAD, MVT::i1, Promote); - setTruncStoreAction(MVT::i8, MVT::i1, Promote); + setTruncStoreAction(MVT::i8, MVT::i1, Custom); setTruncStoreAction(MVT::i16, MVT::i1, Custom); setTruncStoreAction(MVT::i32, MVT::i1, Custom); setTruncStoreAction(MVT::i64, MVT::i1, Custom); -- cgit v1.2.3