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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Kito Cheng <k...@gcc.gnu.org>:

https://gcc.gnu.org/g:4bd63c709de82bfecde8cf99145974b349918d5d

commit r14-11575-g4bd63c709de82bfecde8cf99145974b349918d5d
Author: xuli <xu...@eswincomputing.com>
Date:   Mon Oct 28 04:41:09 2024 +0000

    RISC-V:Bugfix for vlmul_ext and vlmul_trunc with NULL return
value[pr117286]

    This patch fixes following ICE:

    test.c: In function 'func':
    test.c:37:24: internal compiler error: Segmentation fault
       37 |     vfloat16mf2_t vc = __riscv_vlmul_trunc_v_f16m1_f16mf2(vb);
          |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    The root cause is that vlmul_trunc has a null return value.
    gimple_call <__riscv_vlmul_trunc_v_f16m1_f16mf2, NULL, vb_13>
                                                     ^^^

    Passed the rv64gcv_zvfh regression test.

    Singed-off-by: Li Xu <xu...@eswincomputing.com>

            PR target/117286

    gcc/ChangeLog:

            * config/riscv/riscv-vector-builtins-bases.cc: Do not expand NULL
return.

    gcc/testsuite/ChangeLog:

            * gcc.target/riscv/rvv/base/pr117286.c: New test.

Reply via email to