]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PATCH] RISC-V: Fix th.extu operands exceeding range on rv32.
authorXianmiao Qu <cooper.qu@linux.alibaba.com>
Wed, 18 Sep 2024 13:28:44 +0000 (07:28 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Wed, 18 Sep 2024 13:29:36 +0000 (07:29 -0600)
commitec34a4481b63bb5028b2a8c61322a7a3d362b27c
treecce177fc26be885f10a05ff4c398e033874ab262
parent0756f335fb6e455641850a76e68f892f1f82ada2
[PATCH] RISC-V: Fix th.extu operands exceeding range on rv32.

The Combine Pass may generate zero_extract instructions that are out of range.
Drawing from other architectures like AArch64, we should impose restrictions
on the "*th_extu<mode>4" pattern.

gcc/
* config/riscv/thead.md (*th_extu<mode>4): Fix th.extu
operands exceeding range on rv32.

gcc/testsuite/
* gcc.target/riscv/xtheadbb-extu-4.c: New.
gcc/config/riscv/thead.md
gcc/testsuite/gcc.target/riscv/xtheadbb-extu-4.c [new file with mode: 0644]