From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7B9C03858D39; Sun, 17 Dec 2023 06:57:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7B9C03858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702796243; bh=SKaszC2Y78La0LRrqQP+9hf953GXHPtPqq8gsp3ji8Y=; h=From:To:Subject:Date:From; b=eHB1ynKOfpAGmjliOJaKomvnkU1JC1CtUa8iAqYycF9EaUXG52Mcglmxe79CYHEPl IYVNqeNw+G5OuucrrF5gi9dZ6F4jeMG78/wBSYblyV6n+Mlk9EaXFiZ1sz7L0fw9Is CZfZsxnLitU8FvKWPTUPXG+n0Avc9/ZKK1hvgHS0= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113048] New: [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake Date: Sun, 17 Dec 2023 06:57:22 +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: 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=3D113048 Bug ID: 113048 Summary: [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=3Dcascadelake Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: 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: i686-pc-linux-gnu Created attachment 56893 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56893&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O1 -march=3Dcascadelake -m32 -fwrapv testcase.c= =20 testcase.c: In function 'foo0': testcase.c:13:49: warning: division by zero [-Wdiv-by-zero] 13 | (~s64_0 & (0xfb5856dd8a4d4702 & foo0_s16_0) / 0) * u8_1; | ^ testcase.c:22:1: error: unable to find a register to spill 22 | } | ^ testcase.c:22:1: error: this is the insn: (insn 34 99 109 2 (parallel [ (set (reg:DI 209 [159]) (and:DI (not:DI (reg/v:DI 187 [orig:144 s64_0 ] [144])) (reg:DI 199 [182]))) (clobber (reg:CC 17 flags)) ]) "testcase.c":13:13 703 {*andndi3_doubleword_bmi} (expr_list:REG_DEAD (reg:DI 199 [182]) (expr_list:REG_DEAD (reg/v:DI 187 [orig:144 s64_0 ] [144]) (expr_list:REG_UNUSED (reg:CC 17 flags) (nil))))) during RTL pass: reload testcase.c:22:1: internal compiler error: in lra_split_hard_reg_for, at lra-assigns.cc:1862 0x8035ef _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl-error.cc:108 0x12f42dd lra_split_hard_reg_for() /repo/gcc-trunk/gcc/lra-assigns.cc:1862 0x12ed9f8 lra(_IO_FILE*, int) /repo/gcc-trunk/gcc/lra.cc:2518 0x129badf do_reload /repo/gcc-trunk/gcc/ira.cc:5973 0x129badf execute /repo/gcc-trunk/gcc/ira.cc:6161 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-6619-20231216150950-= g39f9c426f58-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/14.0.0/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 --disable-bootstrap --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 --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r14-6619-20231216150950-g39f9c426f= 58-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231216 (experimental) (GCC)=