Commit c08c9f9
[RISCV] Use getSignedConstant for negative values. (llvm#125903)
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)1 parent 49a8fb2 commit c08c9f9
File tree
3 files changed
+4
-2
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV/rvv
3 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16297 | 16297 | | |
16298 | 16298 | | |
16299 | 16299 | | |
16300 | | - | |
| 16300 | + | |
16301 | 16301 | | |
16302 | 16302 | | |
16303 | 16303 | | |
| |||
16358 | 16358 | | |
16359 | 16359 | | |
16360 | 16360 | | |
16361 | | - | |
| 16361 | + | |
16362 | 16362 | | |
16363 | 16363 | | |
16364 | 16364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
0 commit comments