From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5594E3856279; Tue, 14 Jun 2022 14:19:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5594E3856279 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105974] New: [13 Regression] ICE: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in arm_bfi_1_p, at config/arm/arm.cc:10214 Date: Tue, 14 Jun 2022 14:19:28 +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: 13.0 X-Bugzilla-Keywords: build, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz 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 keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2022 14:19:28 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105974 Bug ID: 105974 Summary: [13 Regression] ICE: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in arm_bfi_1_p, at config/arm/arm.cc:10214 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: build, ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: armv7a-hardfloat-linux-gnueabi Created attachment 53134 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53134&action=3Dedit reduced testcase This currently breaks build with RTL checking enabled. Compiler output: $ /repo/build-gcc-trunk-armv7a-hardfloat/./gcc/cc1 -O2 -march=3Darmv7-a+vfp= v4 testcase.c=20 __gnu_fractqquda Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> {heap 932k} {heap 932k} {heap 932k} {heap 1212k} {heap 1684k} {heap 1684k} {heap 1684k} {heap 1684k}Streaming LTO {heap 1684k} {heap 1684k} {heap 1684k} {heap 1684k} {heap 1684k} {heap 1684k} {heap 1684k} {heap 1684k} {heap 1684k} {heap 1684k} {heap 1684k} {heap 1684k} {heap 1684k} {heap 1684k}Assembling functions: __gnu_fractqqudaduring RTL pass: combine testcase.c: In function '__gnu_fractqquda': testcase.c:9:1: internal compiler error: RTL check: expected elt 0 type 'i'= or 'n', have 'w' (rtx const_int) in arm_bfi_1_p, at config/arm/arm.cc:10214 9 | } | ^ 0x71d11e rtl_check_failed_type2(rtx_def const*, int, int, int, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl.cc:907 0x7d01d3 arm_bfi_1_p /repo/gcc-trunk/gcc/config/arm/arm.cc:10214 0x14406d6 arm_bfi_p /repo/gcc-trunk/gcc/config/arm/arm.cc:10255 0x14406d6 arm_rtx_costs_internal /repo/gcc-trunk/gcc/config/arm/arm.cc:11027 0x14406d6 arm_rtx_costs /repo/gcc-trunk/gcc/config/arm/arm.cc:12058 0x102c33e rtx_cost(rtx_def*, machine_mode, rtx_code, int, bool) /repo/gcc-trunk/gcc/rtlanal.cc:4629 0x1b69e98 set_src_cost /repo/gcc-trunk/gcc/rtl.h:2943 0x1b69e98 distribute_and_simplify_rtx /repo/gcc-trunk/gcc/combine.cc:10013 0x1b77941 simplify_logical /repo/gcc-trunk/gcc/combine.cc:7103 0x1b77941 combine_simplify_rtx /repo/gcc-trunk/gcc/combine.cc:6330 0x1b79d19 subst /repo/gcc-trunk/gcc/combine.cc:5605 0x1b7d3d7 try_combine /repo/gcc-trunk/gcc/combine.cc:3288 0x1b85dd5 combine_instructions /repo/gcc-trunk/gcc/combine.cc:1266 0x1b85dd5 rest_of_handle_combine /repo/gcc-trunk/gcc/combine.cc:14976 0x1b85dd5 execute /repo/gcc-trunk/gcc/combine.cc:15021 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. $ /repo/build-gcc-trunk-armv7a-hardfloat/./gcc/xgcc -v Using built-in specs. COLLECT_GCC=3D/repo/build-gcc-trunk-armv7a-hardfloat/./gcc/xgcc Target: armv7a-hardfloat-linux-gnueabi Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --with-cloog --with-ppl --with-isl --with-float=3Dhard --with-fpu=3Dvfpv4 --with-arch=3Darmv7-a --with-sysroot=3D/usr/armv7a-hardfloat-linux-gnueabi --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Darmv7a-hardfloat-linux-gnueabi --with-ld=3D/usr/bin/armv7a-hardfloat-linux-gnueabi-ld --with-as=3D/usr/bin/armv7a-hardfloat-linux-gnueabi-as --disable-libstdcxx-= pch --prefix=3D/repo/gcc-trunk//binary-trunk-r13-1089-20220614140553-g8f6c317b3= a1-checking-yes-rtl-df-extra-armv7a-hardfloat Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.0 20220614 (experimental) (GCC)=