From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6BBF73858D35; Mon, 22 Apr 2024 10:45:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6BBF73858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713782705; bh=1jyK5c8O/eP9D9StJSVFp/ju+TDxSTb9IHtFjzYNzqs=; h=From:To:Subject:Date:From; b=IHtCPR1AdJU8CAx7UK+CTySWI+giWkvoZnxh3E1s04DI1hEl7fuPBp3fRNXbW1f/k Rh/2Luo03FhnwhB84CjR0RGA8AwumJfWQ+vwCeJ/cbLsM3EZ0JrsLIjn0MPqBpiABn gH4gIxjkIYr+qTSrdE33Wj+2ZdhTTszt5rDjDDXM= From: "acoplan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114801] New: [14 Regression] arm: ICE in find_cached_value, at rtx-vector-builder.cc:100 with MVE intrinsics Date: Mon, 22 Apr 2024 10:45:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: acoplan at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114801 Bug ID: 114801 Summary: [14 Regression] arm: ICE in find_cached_value, at rtx-vector-builder.cc:100 with MVE intrinsics Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following testcase: #include uint32x4_t test_9() { return vdupq_m_n_u32(vdupq_n_u32(0), 0, 0xcccc); } ICEs with -march=3Darmv8.1-m.main+mve -mfloat-abi=3Dhard on the trunk. This= appears to be a regression from GCC 13. For a preprocessed reproducer, take the following: $ cat t.c #pragma GCC arm "arm_mve_types.h" #pragma GCC arm "arm_mve.h" false uint32x4_t test_9() { return vdupq_m_n_u32(vdupq_n_u32(0), 0, 0xcccc); } $ gcc/xgcc -B gcc -c t.c -S -o /dev/null -march=3Darmv8.1-m.main+mve -mfloat-abi=3Dhard during RTL pass: expand t.c: In function =E2=80=98test_9=E2=80=99: t.c:4:10: internal compiler error: in find_cached_value, at rtx-vector-builder.cc:100 4 | return vdupq_m_n_u32(vdupq_n_u32(0), 0, 0xcccc); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x2a7fc16 rtx_vector_builder::find_cached_value() /home/alecop01/toolchain/src/gcc/gcc/rtx-vector-builder.cc:100 0x2a7f9c9 rtx_vector_builder::build() /home/alecop01/toolchain/src/gcc/gcc/rtx-vector-builder.cc:64 0x2adff41 native_decode_vector_rtx(machine_mode, vec const&, unsigned int, unsigned int, unsigned int) /home/alecop01/toolchain/src/gcc/gcc/simplify-rtx.cc:7269 0x2ae0068 native_decode_rtx(machine_mode, vec const&, unsigned int) /home/alecop01/toolchain/src/gcc/gcc/simplify-rtx.cc:7289 0x2ae10c4 simplify_immed_subreg /home/alecop01/toolchain/src/gcc/gcc/simplify-rtx.cc:7529 0x2ae1807 simplify_context::simplify_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u, unsigned long>) /home/alecop01/toolchain/src/gcc/gcc/simplify-rtx.cc:7603 0x2ae31f2 simplify_context::simplify_gen_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u, unsigned long>) /home/alecop01/toolchain/src/gcc/gcc/simplify-rtx.cc:7875 0x2ae3644 simplify_context::lowpart_subreg(machine_mode, rtx_def*, machine_mode) /home/alecop01/toolchain/src/gcc/gcc/simplify-rtx.cc:7904 0x1e92c3e lowpart_subreg(machine_mode, rtx_def*, machine_mode) /home/alecop01/toolchain/src/gcc/gcc/rtl.h:3565 0x22f4d11 gen_lowpart_common(machine_mode, rtx_def*) /home/alecop01/toolchain/src/gcc/gcc/emit-rtl.cc:1627 0x2a7f336 gen_lowpart_general(machine_mode, rtx_def*) /home/alecop01/toolchain/src/gcc/gcc/rtlhooks.cc:48 0x327a20e arm_mve::function_expander::add_input_operand(insn_code, rtx_def*) =20=20=20=20=20=20=20 /home/alecop01/toolchain/src/gcc/gcc/config/arm/arm-mve-builtins.cc:2103 0x327a887 arm_mve::function_expander::use_cond_insn(insn_code, unsigned int) =20=20=20=20=20=20=20 /home/alecop01/toolchain/src/gcc/gcc/config/arm/arm-mve-builtins.cc:2227 0x3282fe2 arm_mve::unspec_mve_function_exact_insn::expand(arm_mve::function_expander&) const =20=20=20=20=20=20=20 /home/alecop01/toolchain/src/gcc/gcc/config/arm/arm-mve-builtins-functions.= h:339 0x327ab65 arm_mve::function_expander::expand() =20=20=20=20=20=20=20 /home/alecop01/toolchain/src/gcc/gcc/config/arm/arm-mve-builtins.cc:2287 0x327ae1d arm_mve::expand_builtin(unsigned int, tree_node*, rtx_def*) =20=20=20=20=20=20=20 /home/alecop01/toolchain/src/gcc/gcc/config/arm/arm-mve-builtins.cc:2352 0x3275215 arm_expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, = int) /home/alecop01/toolchain/src/gcc/gcc/config/arm/arm-builtins.cc:4103 0x20fd3b9 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) /home/alecop01/toolchain/src/gcc/gcc/builtins.cc:7769 0x236a0ed expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/alecop01/toolchain/src/gcc/gcc/expr.cc:12350 0x235c6d1 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modif= ier, rtx_def**, bool) /home/alecop01/toolchain/src/gcc/gcc/expr.cc:9440 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions.=