From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B76AF386FC29; Wed, 21 Jul 2021 16:24:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B76AF386FC29 From: "jamborm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/101560] New: ICE building 526.blender_r with -Ofast -flto -march=znver2 since r12-1958-gedafb35bdad Date: Wed, 21 Jul 2021 16:24:15 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jamborm 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 cc target_milestone cf_gcchost cf_gcctarget 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: Wed, 21 Jul 2021 16:24:15 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101560 Bug ID: 101560 Summary: ICE building 526.blender_r with -Ofast -flto -march=3Dznver2 since r12-1958-gedafb35bdad Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jamborm at gcc dot gnu.org CC: hjl at gcc dot gnu.org Target Milestone: --- Host: x86_64-linux Target: x86_64-linux When building SPEC 2017 FPrate benchmark 526.blender_r with -Ofast -g -flto -march=3Dznver2 -mtune=3Dznver2 I see the following ICE: blender/source/blender/blenloader/intern/readfile.c: In function 'do_versio= ns': blender/source/blender/blenloader/intern/readfile.c:7595:1: internal compil= er error: in lra_assign, at lra-assigns.c:1649 7595 | } | ^ 0xb77d20 lra_assign(bool&) /home/mjambor/gcc/mine/src/gcc/lra-assigns.c:1649 0xb724c4 lra(_IO_FILE*) /home/mjambor/gcc/mine/src/gcc/lra.c:2387 0xb2d369 do_reload /home/mjambor/gcc/mine/src/gcc/ira.c:5932 0xb2d369 execute /home/mjambor/gcc/mine/src/gcc/ira.c:6118 Please submit a full bug report... Note that the assert is triggered only with checking, so release-build compilers do not see it. I have bisected it down to: commit edafb35bdadf309ebb9d1eddc5549f9e1ad49c09 Author: H.J. Lu Date: Wed Jun 2 07:15:45 2021 -0700 x86: Convert CONST_WIDE_INT/CONST_VECTOR to broadcast 1. Update move expanders to convert the CONST_WIDE_INT and CONST_VECTOR operands to vector broadcast from an integer with AVX. 2. Add ix86_gen_scratch_sse_rtx to return a scratch SSE register which won't increase stack alignment requirement and blocks transformation by the combine pass. [...rest of the commit message trimmed...] At this point I do not plan to attempt to come up with a reduced testcase.=