From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6722B3858D35; Fri, 8 Mar 2024 06:44:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6722B3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709880288; bh=IDC8A2+Z21vLAxO/vYybgIEoMJpyrHrCsPE9YEt3Cok=; h=From:To:Subject:Date:From; b=h/5fkXsvUscV/i7DrETJJppXExXtNGeJIRWyvXr8XJDlL9dgXYTMt3zALxBFagGzv 35NsngWaGjUltKzrI+CKzQ2wZbKucqLYuH8VXc8MFSOBBss0oFrLOkRzWjPrNhkmcG OlFIEJrwK0OONbSp1nO1Sx+T4q3gjKhzx/aULcsA= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/114278] New: ICE: in extract_bit_field_1, at expmed.cc:1838 with memmove, _BitInt() and -O2 -fno-tree-dce -fno-tree-dse -fno-tree-ccp -m32 Date: Fri, 08 Mar 2024 06:44:46 +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: 14.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 cc 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=3D114278 Bug ID: 114278 Summary: ICE: in extract_bit_field_1, at expmed.cc:1838 with memmove, _BitInt() and -O2 -fno-tree-dce -fno-tree-dse -fno-tree-ccp -m32 Product: gcc Version: 14.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 CC: jakub at gcc dot gnu.org Target Milestone: --- Host: x86_64-pc-linux-gnu Target: i686-pc-linux-gnu Created attachment 57653 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57653&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O2 -fno-tree-dce -fno-tree-dse -fno-tree-ccp -m32 testcase.c -Wall -W during RTL pass: expand testcase.c: In function 'foo': testcase.c:4:37: internal compiler error: in extract_bit_field_1, at expmed.cc:1838 4 | _BitInt(128) b =3D *(_BitInt(128) *)__builtin_memmove(&b, p, 16); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x758082 extract_bit_field_1 /repo/gcc-trunk/gcc/expmed.cc:1838 0x10a868c extract_bit_field(rtx_def*, poly_int<1u, unsigned long>, poly_int= <1u, unsigned long>, int, rtx_def*, machine_mode, machine_mode, bool, rtx_def**) /repo/gcc-trunk/gcc/expmed.cc:2151 0x10c7654 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /repo/gcc-trunk/gcc/expr.cc:12456 0x10d323d store_expr(tree_node*, rtx_def*, int, bool, bool) /repo/gcc-trunk/gcc/expr.cc:6740 0x10d5e6f expand_assignment(tree_node*, tree_node*, bool) /repo/gcc-trunk/gcc/expr.cc:6461 0x10d5e6f expand_assignment(tree_node*, tree_node*, bool) /repo/gcc-trunk/gcc/expr.cc:5946 0xf8cfe9 expand_gimple_stmt_1 /repo/gcc-trunk/gcc/cfgexpand.cc:3998 0xf8cfe9 expand_gimple_stmt /repo/gcc-trunk/gcc/cfgexpand.cc:4077 0xf8e677 expand_gimple_basic_block /repo/gcc-trunk/gcc/cfgexpand.cc:6133 0xf90cfe execute /repo/gcc-trunk/gcc/cfgexpand.cc:6872 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. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= cc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r14-9346-20240306205443-= g74e8cc28eda-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-l= inux-gnu/14.0.1/lto-wrapper Target: x86_64-pc-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 --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --enable-libsanitizer --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r14-9346-20240306205443-g74e8cc28e= da-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240306 (experimental) (GCC)=