Skip to content

Commit

Permalink
[RISCV] Use getSignedConstant for negative values. (llvm#125903)
Browse files Browse the repository at this point in the history
The APInt constructor asserts if bits are set past the size of the APInt
unless it is signed. This currently fails on RV32 because more than XLen
bits are set.

(cherry picked from commit 0d7ee52)
  • Loading branch information
topperc authored and tstellar committed Feb 6, 2025
1 parent 49a8fb2 commit c08c9f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Target/RISCV/RISCVISelLowering.cpp
1 change: 1 addition & 0 deletions llvm/test/CodeGen/RISCV/rvv/vp-combine-reverse-load.ll
1 change: 1 addition & 0 deletions llvm/test/CodeGen/RISCV/rvv/vp-combine-store-reverse.ll

0 comments on commit c08c9f9

Please sign in to comment.