]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix typo in tt-ascalon-d8's pipeline description [PR121878]
authorPeter Bergner <bergner@tenstorrent.com>
Tue, 9 Sep 2025 19:43:28 +0000 (14:43 -0500)
committerPeter Bergner <bergner@tenstorrent.com>
Wed, 10 Sep 2025 15:56:29 +0000 (10:56 -0500)
commit09864c7cd0c94cfb781ceb6a3d6186df7ad38096
treeb1cabbf3a2216696189244a0ee6d5ce45c8e39e2
parent06628704c611b1a7f788e64b306338c653ad074d
RISC-V: Fix typo in tt-ascalon-d8's pipeline description [PR121878]

PR121878 shows a typo in the tt-ascalon-d8's pipeline description that
leads to an ICE.  The problem is that the vector define_insn_reservation
patterns test for scalar modes rather than vector modes, meaning the
insns don't get handled correctly.  We could correct the modes, but given
we could have multiple VLEN values, the number of modes we'd have to check
can be large and mode iterators are not allowed in the mode attribute check.
Instead, I've removed the mode check and replaced it with a test of the
Selected Elenent Width (SEW).

2025-09-09  Peter Bergner  <bergner@tenstorrent.com>

gcc/
PR target/121878
* config/riscv/tt-ascalon-d8.md (tt_ascalon_d8_vec_idiv_half): Test the
Selected Element Width (SEW) rather than the mode.
(tt_ascalon_d8_vec_idiv_single): Likewise.
(tt_ascalon_d8_vec_idiv_double): Likewise.
(tt_ascalon_d8_vec_float_divsqrt_half): Likewise.
(tt_ascalon_d8_vec_float_divsqrt_single): Likewise.
(tt_ascalon_d8_vec_float_divsqrt_double): Likewise.

gcc/testsuite/
PR target/121878
* gcc.target/riscv/pr121878.c: New test.

Signed-off-by: Peter Bergner <bergner@tenstorrent.com>
gcc/config/riscv/tt-ascalon-d8.md
gcc/testsuite/gcc.target/riscv/pr121878.c [new file with mode: 0644]