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

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>:

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

commit r15-5803-gaf974df94751195ce72e86d7b88e5d5444375b45
Author: Andrew Pinski <quic_apin...@quicinc.com>
Date:   Tue Nov 19 00:19:57 2024 -0800

    aarch64: Mark __builtin_aarch64_im_lane_boundsi as leaf and nothrow
[PR117665]

    __builtin_aarch64_im_lane_boundsi is known not to throw or call back into
another
    function since it will either folded into an NOP or will produce a compiler
error.

    This fixes the ICE by fixing the missed optimization. It does not fix the
underlying
    issue with fold_marked_statements; which I filed as PR 117668.

    Built and tested for aarch64-linux-gnu.

            PR target/117665

    gcc/ChangeLog:

            * config/aarch64/aarch64-builtins.cc
(aarch64_init_simd_builtin_functions):
            Pass nothrow and leaf as attributes to aarch64_general_add_builtin
for
            __builtin_aarch64_im_lane_boundsi.

    gcc/testsuite/ChangeLog:

            * g++.target/aarch64/lane-bound-1.C: New test.
            * gcc.target/aarch64/lane-bound-3.c: New test.

    Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>
  • [Bug target/117665] [15 regress... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to