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

Alex Coplan <acoplan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |acoplan at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2025-07-10

--- Comment #3 from Alex Coplan <acoplan at gcc dot gnu.org> ---
Confirmed.  Here's a reproducer that works with just a cc1 and the stack trace:

$ cat t.c
#pragma GCC aarch64 "arm_sve.h"

svfloat16_t test (svfloat16_t a, svmfloat8_t b, svmfloat8_t c)
{
    return svdot_lane_fpm (a, b, c, 0, 0);
}
$ ./xgcc -B . -c t.c -O2 -S -o - -march=armv8.2-a+sve2+fp8dot2
        .arch armv8.2-a+crc+sve2+fp8dot2
        .file   "t.c"
        .text
during RTL pass: expand
t.c: In function ‘test’:
t.c:5:12: internal compiler error: in expand, at
config/aarch64/aarch64-sve-builtins.cc:4592
    5 |     return svdot_lane_fpm (a, b, c, 0, 0);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x36f0265 internal_error(char const*, ...)
        /fast/trunk/src/gcc/gcc/diagnostic-global-context.cc:517
0x36ade5c fancy_abort(char const*, int, char const*)
        /fast/trunk/src/gcc/gcc/diagnostic.cc:1810
0x21c7890 aarch64_sve::function_expander::expand()
        /fast/trunk/src/gcc/gcc/config/aarch64/aarch64-sve-builtins.cc:4592
0x21ca099 aarch64_sve::expand_builtin(unsigned int, tree_node*, rtx_def*)
        /fast/trunk/src/gcc/gcc/config/aarch64/aarch64-sve-builtins.cc:4967
0x1fd6959 aarch64_expand_builtin
        /fast/trunk/src/gcc/gcc/config/aarch64/aarch64.cc:16254
0x11b3047 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
        /fast/trunk/src/gcc/gcc/builtins.cc:7839
0x13df62f expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        /fast/trunk/src/gcc/gcc/expr.cc:12535
0x13d00ba expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier,
rtx_def**, bool)
        /fast/trunk/src/gcc/gcc/expr.cc:9523
0x13c41e3 store_expr(tree_node*, rtx_def*, int, bool, bool)
        /fast/trunk/src/gcc/gcc/expr.cc:6762
0x13c27f6 expand_assignment(tree_node*, tree_node*, bool)
        /fast/trunk/src/gcc/gcc/expr.cc:6483
0x11fb580 expand_call_stmt
        /fast/trunk/src/gcc/gcc/cfgexpand.cc:3202
0x11ff570 expand_gimple_stmt_1
        /fast/trunk/src/gcc/gcc/cfgexpand.cc:4276
0x11ffba5 expand_gimple_stmt
        /fast/trunk/src/gcc/gcc/cfgexpand.cc:4423
0x11ffce6 expand_gimple_tailcall
        /fast/trunk/src/gcc/gcc/cfgexpand.cc:4470
0x1208be9 expand_gimple_basic_block
        /fast/trunk/src/gcc/gcc/cfgexpand.cc:6512
0x120b3a9 execute
        /fast/trunk/src/gcc/gcc/cfgexpand.cc:7286
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to