https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118601

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Ma Jin <ma...@gcc.gnu.org>:

https://gcc.gnu.org/g:580f571be6ce80aa71fb80e7b16e01824f088229

commit r15-7489-g580f571be6ce80aa71fb80e7b16e01824f088229
Author: Jin Ma <ji...@linux.alibaba.com>
Date:   Tue Feb 11 21:28:05 2025 +0800

    RISC-V: unrecognizable insn ICE in xtheadvector/pr114194.c on 32bit targets

    This is a follow-up to the patch below to avoid generating unrecognized
    vsetivl instructions for XTheadVector.

    https://gcc.gnu.org/pipermail/gcc-patches/2025-January/674185.html

            PR target/118601

    gcc/ChangeLog:

            * config/riscv/riscv-string.cc (expand_block_move): Check with new
            constraint 'vl' instead of 'K'.
            (expand_vec_setmem): Likewise.
            (expand_vec_cmpmem): Likewise.
            * config/riscv/riscv-v.cc (force_vector_length_operand): Likewise.
            (expand_load_store): Likewise.
            (expand_strided_load): Likewise.
            (expand_strided_store): Likewise.
            (expand_lanes_load_store): Likewise.

    gcc/testsuite/ChangeLog:

            * gcc.target/riscv/rvv/xtheadvector/pr114194.c: Move to...
            * gcc.target/riscv/rvv/xtheadvector/pr114194-rv64.c: ...here.
            * gcc.target/riscv/rvv/xtheadvector/pr114194-rv32.c: New test.
            * gcc.target/riscv/rvv/xtheadvector/pr118601.c: New test.

    Reported-by: Edwin Lu <e...@rivosinc.com>

Reply via email to