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

            Bug ID: 123011
           Summary: internal compiler error: in simplify_subreg, at
                    simplify-rtx.cc:7983
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: malat at debian dot org
  Target Milestone: ---

I cannot compile highway on riscv/arm64 with gcc-15.

Compilation fails with:

% /usr/bin/c++ -freport-bug -DHWY_SHARED_DEFINE
-I"/home/malat/highway-1.3.1~git20251202.ee36c83" -g -O2
-ffile-prefix-map=/home/malat/highway-1.3.1~git20251202.ee36c83=. -flto=auto
-ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -mbranch-protection=standard -DHWY_BROKEN_EMU128=0
-mstrict-align -march=armv8-a -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG
-std=c++17 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden
-Wno-builtin-macro-redefined -D__DATE__=\"redacted\"
-D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants
-Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor
-Wcast-align -fmath-errno -fno-exceptions -Wno-psabi -Werror -DHWY_IS_TEST=1
-DGTEST_HAS_PTHREAD=1 -MD -MT
CMakeFiles/mask_mem_test.dir/hwy/tests/mask_mem_test.cc.o -MF
CMakeFiles/mask_mem_test.dir/hwy/tests/mask_mem_test.cc.o.d -o
CMakeFiles/mask_mem_test.dir/hwy/tests/mask_mem_test.cc.o -c
'/home/malat/highway-1.3.1~git20251202.ee36c83/hwy/tests/mask_mem_test.cc' 

during RTL pass: expand
In file included from
/home/malat/highway-1.3.1~git20251202.ee36c83/hwy/foreach_target.h:207,
                 from
/home/malat/highway-1.3.1~git20251202.ee36c83/hwy/tests/mask_mem_test.cc:27:
/home/malat/highway-1.3.1~git20251202.ee36c83/hwy/tests/mask_mem_test.cc: In
function 'hwy::N_SVE2::(anonymous
namespace)::TestStoreMaskBits::operator()<signed char, hwy::N_SVE2::Simd<signed
char, 16ul, 0> >(signed char, hwy::N_SVE2::Simd<signed char, 16ul, 0>)void
[clone .constprop.0]':
/home/malat/highway-1.3.1~git20251202.ee36c83/hwy/tests/mask_mem_test.cc:333:18:
internal compiler error: in simplify_subreg, at simplify-rtx.cc:7983
  333 |       const auto mask2 = LoadMaskBits(di, actual.get());
      |                  ^~~~~
0xfef7ef diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, std::__va_list*,
diagnostic_t)
        ???:0
0xfc0dcb internal_error(char const*, ...)
        ???:0
0xfc0eaf fancy_abort(char const*, int, char const*)
        ???:0
0x18031cf simplify_context::simplify_subreg(machine_mode, rtx_def*,
machine_mode, poly_int<2u, unsigned long>)
        ???:0
0x1801af3 simplify_context::simplify_gen_subreg(machine_mode, rtx_def*,
machine_mode, poly_int<2u, unsigned long>)
        ???:0
0x17fff1b gen_lowpart_common(machine_mode, rtx_def*)
        ???:0
0x17ffba3 gen_lowpart_general(machine_mode, rtx_def*)
        ???:0
0x184381b convert_modes(machine_mode, machine_mode, rtx_def*, int)
        ???:0
0x1949e93 extract_bit_field(rtx_def*, poly_int<2u, unsigned long>, poly_int<2u,
unsigned long>, int, rtx_def*, machine_mode, machine_mode, bool, rtx_def**)
        ???:0
0x1487e4b expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ???:0
0x17e853f expand_expr_real_gassign(gassign*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ???:0
0x1486c27 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ???:0
0x15241d7 store_expr(tree_node*, rtx_def*, int, bool, bool)
        ???:0
0x151f507 expand_assignment(tree_node*, tree_node*, bool)
        ???:0
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-15/README.Bugs> for instructions.

Reply via email to