Skip to content

Commit cf71f97

Browse files
committed
[LoongArch] Add codegen support for part of conversion operations
These operations include `sext`, `zext` and `trunc`. Reference: https://llvm.org/docs/LangRef.html#conversion-operations Differential Revision: https://reviews.llvm.org/D127204
1 parent 05ff379 commit cf71f97

File tree

2 files changed

+419
-0
lines changed

2 files changed

+419
-0
lines changed

llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ LoongArchTargetLowering::LoongArchTargetLowering(const TargetMachine &TM,
6161
}
6262

6363
setOperationAction(ISD::SELECT_CC, GRLenVT, Expand);
64+
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i1, Expand);
6465

6566
// Compute derived properties from the register classes.
6667
computeRegisterProperties(STI.getRegisterInfo());

0 commit comments

Comments
 (0)