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

            Bug ID: 118561
           Summary: [15 Regression] ICE calling
                    __builtin_lasx_xvpickve2gr_w with lasx disabled
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xry111 at gcc dot gnu.org
  Target Milestone: ---

typedef int v8i32 __attribute__ ((vector_size (32), aligned (32)));
int
__lasx_xvpickve2gr_w (v8i32 _1)
{
  return __builtin_lasx_xvpickve2gr_w (_1, 1);
}

With GCC 14.2:

t.c: In function '__lasx_xvpickve2gr_w':
t.c:5:10: error: built-in function '__builtin_lasx_xvpickve2gr_w' is not
enabled
    5 |   return __builtin_lasx_xvpickve2gr_w (_1, 1);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
t.c:5: confused by earlier errors, bailing out

With GCC 15:

t.c:5:10: error: built-in function '__builtin_lasx_xvpickve2gr_w' is not
enabled
    5 |   return __builtin_lasx_xvpickve2gr_w (_1, 1);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
during RTL pass: expand
t.c:5:10: internal compiler error: Segmentation fault
0x2b878fb internal_error(char const*, ...)
        ../../gcc/gcc/diagnostic-global-context.cc:517
0x1758aa2 crash_signal
        ../../gcc/gcc/toplev.cc:322
0x7f16503b788f ???
       
/home/xry111/sources/lfs/glibc-2.40/signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x1153597 expand_expr_real_2(separate_ops const*, rtx_def*, machine_mode,
expand_modifier)
        ../../gcc/gcc/expr.cc:9860
0x1161d36 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc/gcc/expr.cc:12758
0x1151fd7 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier,
rtx_def**, bool)
        ../../gcc/gcc/expr.cc:9521
0xf605a0 expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier)
        ../../gcc/gcc/expr.h:323
0x11455ed store_expr(tree_node*, rtx_def*, int, bool, bool)
        ../../gcc/gcc/expr.cc:6654
0x1144841 expand_assignment(tree_node*, tree_node*, bool)
        ../../gcc/gcc/expr.cc:6492
0xf91dec expand_call_stmt
        ../../gcc/gcc/cfgexpand.cc:3142
0xf95dea expand_gimple_stmt_1
        ../../gcc/gcc/cfgexpand.cc:4217
0xf9641b expand_gimple_stmt
        ../../gcc/gcc/cfgexpand.cc:4364
0xf96533 expand_gimple_tailcall
        ../../gcc/gcc/cfgexpand.cc:4410
0xf9ee21 expand_gimple_basic_block
        ../../gcc/gcc/cfgexpand.cc:6401
0xfa1516 execute
        ../../gcc/gcc/cfgexpand.cc:7176
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