Skip to content

Commit

Permalink
[RISCV] Promote i32 ISD::VAARG to i64 for -riscv-experimental-rv64-le…
Browse files Browse the repository at this point in the history
…gal-i32.
  • Loading branch information
topperc committed Feb 4, 2024
1 parent dea855d commit 859b09d
Show file tree
Hide file tree
Showing 2 changed files with 1,393 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,

setOperationAction(ISD::VASTART, MVT::Other, Custom);
setOperationAction({ISD::VAARG, ISD::VACOPY, ISD::VAEND}, MVT::Other, Expand);
if (RV64LegalI32 && Subtarget.is64Bit())
setOperationAction(ISD::VAARG, MVT::i32, Promote);

setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i1, Expand);

Expand Down
Loading

0 comments on commit 859b09d

Please sign in to comment.