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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Robin Dapp <[email protected]>:

https://gcc.gnu.org/g:f6ff8dc86aa77532192a70c54a1448dc2a083520

commit r17-6429-gf6ff8dc86aa77532192a70c54a1448dc2a083520
Author: Robin Dapp <[email protected]>
Date:   Wed Nov 18 12:01:27 2026 +0100

    RISC-V: Always record largest type for conv-dynamic [PR128841].

    If the type is unusable for -mrvv-max-lmul=conv-dynamic in
    record_type_sizes, we just return.  It can happen that all types
    are unusable and we end up dereferencing a NULL largest_type.

    This patch always records a char type so we have something to work with
    later, even if we don't raise LMUL.

            PR target/128841

    gcc/ChangeLog:

            * config/riscv/riscv-vector-costs.cc (costs::record_type_sizes):
            Record char as largest_type if type is unusable.

    gcc/testsuite/ChangeLog:

            * gcc.target/riscv/rvv/autovec/pr128841.c: New test.

Reply via email to