From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 53AC2386C5AF; Sat, 20 Jul 2024 02:20:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 53AC2386C5AF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1721442044; bh=Ju7w4OATzDzkhi+HXoGuFH3T1/hMIkbjutUV6HdcTfA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DbYAZmFckg2ti2JocrnECPgV9aXVlUdyWTm+sAohnOfoldoqXzux2jJwHCQRds0H/ +iToSg6jntZhtGtzHXO9vjKyitLlURWjenBA9rEp/lpT0evJr1hB24cYaJRSw0BKzr DD/4XANBBG0oNYbaUqeTANOBZUZgT0tZZAP4mIHo= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/97367] powerpc64 g5 and cell optimizations result in .machine power7 Date: Sat, 20 Jul 2024 02:20:43 +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: 10.2.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org X-Bugzilla-Target-Milestone: 15.0 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97367 --- Comment #14 from GCC Commits --- The releases/gcc-13 branch has been updated by Peter Bergner : https://gcc.gnu.org/g:44fe2c06a156a63f7ae359fd5dd3ce98afa3e92a commit r13-8925-g44fe2c06a156a63f7ae359fd5dd3ce98afa3e92a Author: Ren=C3=A9 Rebe Date: Fri Jul 12 21:17:08 2024 +0000 rs6000: Fix .machine cpu selection w/ altivec [PR97367] There are various non-IBM CPUs with altivec, so we cannot use that flag to determine which .machine cpu to use, so ignore it. Emit an additional ".machine altivec" if Altivec is enabled so that the assembler doesn't require an explicit -maltivec option to assemble any Altivec instructions for those targets where the ".machine cpu" is insufficient to enable Altivec. For example, -mcpu=3DG5 emits a ".machine power4". 2024-07-18 Ren=C3=A9 Rebe Peter Bergner gcc/ PR target/97367 * config/rs6000/rs6000.cc (rs6000_machine_from_flags): Do not consider OPTION_MASK_ALTIVEC. (emit_asm_machine): For Altivec compiles, emit a ".machine altivec". gcc/testsuite/ PR target/97367 * gcc.target/powerpc/pr97367.c: New test. Signed-off-by: Ren=C3=A9 Rebe (cherry picked from commit 6962835bca3e6bef0f6ceae84a7814138b08b8a5)=