From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2D2D9386076B; Sun, 25 Aug 2024 13:37:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D2D9386076B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1724593034; bh=dxgfX29O7xV84Ggf2TTcBCnQu/BNFqb66AEsVSqGvas=; h=From:To:Subject:Date:From; b=Pi/n5SLhaoVmtxMykgv3Qg8kuEpOaxR7YdXYvXYb6GqcowgmP+JBc+b3aJmBfnDC1 YyySkVv1H/xUC3FxtkMI9ECLmiFbWSbXYcT0upOjrP8U/X+EBHOWwSL1NKnw6Q6b87 gSI5r6b/YANW4ddOqAKrp3HouRjtwAoxpVqMUf38= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/116480] New: [15 Regression] ICE: in operand_subword_force, at emit-rtl.cc:1824 at -O2 with __builtin_stdc_has_single_bit() and _BitInt() on aarch64 Date: Sun, 25 Aug 2024 13:37:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D116480 Bug ID: 116480 Summary: [15 Regression] ICE: in operand_subword_force, at emit-rtl.cc:1824 at -O2 with __builtin_stdc_has_single_bit() and _BitInt() on aarch64 Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: aarch64-unknown-linux-gnu Created attachment 58997 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58997&action=3Dedit reduced testcase Compiler output: $ aarch64-unknown-linux-gnu-gcc -O2 testcase.c=20 during RTL pass: expand testcase.c: In function 'foo': testcase.c:4:10: internal compiler error: in operand_subword_force, at emit-rtl.cc:1824 4 | return __builtin_stdc_has_single_bit(b); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x25e580e internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:491 0xc38337 fancy_abort(char const*, int, char const*) /repo/gcc-trunk/gcc/diagnostic.cc:1772 0x7d8b86 operand_subword_force(rtx_def*, poly_int<2u, unsigned long>, machine_mode) /repo/gcc-trunk/gcc/emit-rtl.cc:1824 0x1208289 expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def= *, int, optab_methods) /repo/gcc-trunk/gcc/optabs.cc:1750 0xf12335 emit_store_flag_int(rtx_def*, rtx_def*, rtx_code, rtx_def*, rtx_de= f*, scalar_int_mode, int, int, rtx_def*) /repo/gcc-trunk/gcc/expmed.cc:5851 0xf11f0e emit_store_flag(rtx_def*, rtx_code, rtx_def*, rtx_def*, machine_mo= de, int, int) /repo/gcc-trunk/gcc/expmed.cc:6196 0x1066732 expand_POPCOUNT(internal_fn, gcall*) /repo/gcc-trunk/gcc/internal-fn.cc:5321 0x1066732 expand_POPCOUNT(internal_fn, gcall*) /repo/gcc-trunk/gcc/internal-fn.cc:5293 0xde58c7 expand_call_stmt /repo/gcc-trunk/gcc/cfgexpand.cc:2801 0xde58c7 expand_gimple_stmt_1 /repo/gcc-trunk/gcc/cfgexpand.cc:3962 0xde58c7 expand_gimple_stmt /repo/gcc-trunk/gcc/cfgexpand.cc:4104 0xdebf9e expand_gimple_basic_block /repo/gcc-trunk/gcc/cfgexpand.cc:6160 0xdeda66 execute /repo/gcc-trunk/gcc/cfgexpand.cc:6899 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. $ aarch64-unknown-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-lin= ux-gnu-gcc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r15-3158-20240825101449-= g91f549537ca-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-u= nknown-linux-gnu/15.0.0/lto-wrapper Target: aarch64-unknown-linux-gnu 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-sysroot=3D/usr/aarch64-unknown-linux-gnu --build=3Dx86_64-pc-linux-g= nu --host=3Dx86_64-pc-linux-gnu --target=3Daarch64-unknown-linux-gnu --with-ld=3D/usr/bin/aarch64-unknown-linux-gnu-ld --with-as=3D/usr/bin/aarch64-unknown-linux-gnu-as --enable-libsanitizer --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r15-3158-20240825101449-g91f549537= ca-checking-yes-rtl-df-extra-aarch64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240825 (experimental) (GCC)=