mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
R600: Fix trunc store from i64 to i1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -98,10 +98,16 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) :
|
||||
setTruncStoreAction(MVT::v2i32, MVT::v2i16, Custom);
|
||||
setTruncStoreAction(MVT::v2i32, MVT::v2i8, Custom);
|
||||
setTruncStoreAction(MVT::v4i32, MVT::v4i8, Custom);
|
||||
|
||||
// XXX: This can be change to Custom, once ExpandVectorStores can
|
||||
// handle 64-bit stores.
|
||||
setTruncStoreAction(MVT::v4i32, MVT::v4i16, Expand);
|
||||
|
||||
setTruncStoreAction(MVT::i64, MVT::i1, Expand);
|
||||
setTruncStoreAction(MVT::v2i64, MVT::v2i1, Expand);
|
||||
setTruncStoreAction(MVT::v4i64, MVT::v4i1, Expand);
|
||||
|
||||
|
||||
setOperationAction(ISD::LOAD, MVT::f32, Promote);
|
||||
AddPromotedToType(ISD::LOAD, MVT::f32, MVT::i32);
|
||||
|
||||
|
Reference in New Issue
Block a user