diff options
author | Jeff Law <jlaw@ventanamicro.com> | 2025-05-07 15:06:58 -0600 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2025-05-07 15:06:58 -0600 |
commit | 49c44911df72f55e2004ffa9f5eb362de29ca188 (patch) | |
tree | 4f2146e8f91b3baa541dd04d4f896209c0773664 /libjava/classpath/lib/java | |
parent | 974b079741f902fcf4323dfcecbbffdb9f56f3bf (diff) | |
download | gcc-49c44911df72f55e2004ffa9f5eb362de29ca188.zip gcc-49c44911df72f55e2004ffa9f5eb362de29ca188.tar.gz gcc-49c44911df72f55e2004ffa9f5eb362de29ca188.tar.bz2 |
[RISC-V][PR target/120137][PR target/120154] Don't create out-of-range permutation constants
To make hashing sensible we canonicalize constant vectors in the hash table so
that their first entry always has the value zero. That normalization can
result in a value that can't be represented in the element mode.
So before entering anything into the hash table we need to verify the
normalized entries will fit into the element's mode.
This fixes both 120137 and its duplicate 120154. This has been tested in my
tester. I'm just waiting for the pre-commit tester to render its verdict.
PR target/120137
PR target/120154
gcc/
* config/riscv/riscv-vect-permconst.cc (process_bb): Verify each
canonicalized element fits into the vector element mode.
gcc/testsuite/
* gcc.target/riscv/pr120137.c: New test.
* gcc.target/riscv/pr120154.c: New test.
Diffstat (limited to 'libjava/classpath/lib/java')
0 files changed, 0 insertions, 0 deletions