From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EFF763850435; Wed, 11 May 2022 22:03:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EFF763850435 From: "sam at gentoo dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105573] ICE when building numpy on SPARC64 Date: Wed, 11 May 2022 22:03:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.3.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: sam at gentoo dot 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: Message-ID: In-Reply-To: References: 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, 11 May 2022 22:03:15 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105573 --- Comment #1 from Sam James --- It occurs with -mcpu=3Dnative or -mcpu=3Dniagara4 but not if I drop that. ``` $ for t in param target; do cmd=3D"gcc -Q -O2 --help=3D$t"; diff -U0 <(LANG= =3DC $cmd) <(LANG=3DC $cmd -mcpu=3Dniagara4); done --- /dev/fd/63 2022-05-11 15:01:56.915134318 -0700 +++ /dev/fd/62 2022-05-11 15:01:56.915134318 -0700 @@ -85,2 +85,2 @@ - --param=3Dl1-cache-size=3D 64 - --param=3Dl2-cache-size=3D 512 + --param=3Dl1-cache-size=3D 16 + --param=3Dl2-cache-size=3D 128 @@ -223 +223 @@ - --param=3Dsimultaneous-prefetches=3D 3 + --param=3Dsimultaneous-prefetches=3D 2 --- /dev/fd/63 2022-05-11 15:01:56.965136466 -0700 +++ /dev/fd/62 2022-05-11 15:01:56.975136897 -0700 @@ -6 +6 @@ - -mcbcond [disabled] + -mcbcond [enabled] @@ -8 +8 @@ - -mcpu=3D v9 + -mcpu=3D niagara4 @@ -16 +16 @@ - -mfmaf [disabled] + -mfmaf [enabled] @@ -27 +27 @@ - -mpopc [disabled] + -mpopc [enabled] @@ -36 +36 @@ - -mtune=3D v9 + -mtune=3D niagara4 @@ -41,3 +41,3 @@ - -mvis [disabled] - -mvis2 [disabled] - -mvis3 [disabled] + -mvis [enabled] + -mvis2 [enabled] + -mvis3 [enabled] ``` It looks like -mvis3 is the trigger: ``` $ sparc64-unknown-linux-gnu-gcc -O2 -pipe -c loops.i -mvis3 [...] during GIMPLE pass: isel loops.i:3:33: internal compiler error: in gimple_expand_vec_cond_expr, at gimple-isel.cc:267 3 | __attribute__((optimize("O3"))) UINT_sign() { | ^~~~~~~~~ 0x5c4b2f internal_error(char const*, ...) ???:0 0x5bc583 fancy_abort(char const*, int, char const*) ???:0 [...] ```=