Commit 0d7ee52
authored
[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.1 parent de7be32 commit 0d7ee52
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 | |
|---|---|---|---|
| |||
16353 | 16353 | | |
16354 | 16354 | | |
16355 | 16355 | | |
16356 | | - | |
| 16356 | + | |
16357 | 16357 | | |
16358 | 16358 | | |
16359 | 16359 | | |
| |||
16414 | 16414 | | |
16415 | 16415 | | |
16416 | 16416 | | |
16417 | | - | |
| 16417 | + | |
16418 | 16418 | | |
16419 | 16419 | | |
16420 | 16420 | | |
| |||
| 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