Skip to content

Commit b6e19b3

Browse files
authored
[NVPTX] Fix crash in libc gpu after db5d845 (#65579)
1 parent 3f3ee73 commit b6e19b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,11 @@ NVPTXTargetLowering::NVPTXTargetLowering(const NVPTXTargetMachine &TM,
586586
setTruncStoreAction(VT, MVT::i1, Expand);
587587
}
588588

589+
// expand extload of vector of integers.
590+
setLoadExtAction({ISD::EXTLOAD, ISD::SEXTLOAD, ISD::ZEXTLOAD}, MVT::v2i16,
591+
MVT::v2i8, Expand);
592+
setTruncStoreAction(MVT::v2i16, MVT::v2i8, Expand);
593+
589594
// This is legal in NVPTX
590595
setOperationAction(ISD::ConstantFP, MVT::f64, Legal);
591596
setOperationAction(ISD::ConstantFP, MVT::f32, Legal);

0 commit comments

Comments
 (0)