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

--- Comment #28 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
#include <arm_mve.h>
uint32x4_t test_9() {
  return vdupq_m_n_u32(vdupq_n_u32(0xffffffff), 0, 0xcccc);
}

./cc1 -quiet -isystem include/ -march=armv8.1-m.main+mve -mfloat-abi=hard
pr114801.c  -mthumb -O2 -da
during RTL pass: cse1
dump file: pr114801.c.272r.cse1
pr114801.c: In function ‘test_9’:
pr114801.c:4:1: internal compiler error: in find_cached_value, at
rtx-vector-builder.cc:100
    4 | }
      | ^
0x15a1370 rtx_vector_builder::find_cached_value()
        ../../gcc/rtx-vector-builder.cc:100
0x15a1123 rtx_vector_builder::build()
        ../../gcc/rtx-vector-builder.cc:64
0x15f2a57 native_decode_vector_rtx(machine_mode, vec<unsigned char, va_heap,
vl_ptr> const&, unsigned int, unsigned int, unsigned int)
        ../../gcc/simplify-rtx.cc:7269
0x15f2b7e native_decode_rtx(machine_mode, vec<unsigned char, va_heap, vl_ptr>
const&, unsigned int)
        ../../gcc/simplify-rtx.cc:7289
0x15f3bd7 simplify_immed_subreg
        ../../gcc/simplify-rtx.cc:7529
0x15f431b simplify_context::simplify_subreg(machine_mode, rtx_def*,
machine_mode, poly_int<1u, unsigned long>)
        ../../gcc/simplify-rtx.cc:7603
0x105c627 simplify_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u,
unsigned long>)
        ../../gcc/rtl.h:3516
0x25c8293 equiv_constant
        ../../gcc/cse.cc:3804
0x25c65a0 fold_rtx
        ../../gcc/cse.cc:3138
0x25c9e7e cse_insn
        ../../gcc/cse.cc:4667
0x25cf1fd cse_extended_basic_block
        ../../gcc/cse.cc:6574
0x25cf70e cse_main
        ../../gcc/cse.cc:6719
0x25d1879 rest_of_handle_cse
        ../../gcc/cse.cc:7549
0x25d1990 execute
        ../../gcc/cse.cc:7594
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.

(cross from x86_64-linux to armv7hl-linux-gnueabi).

Reply via email to