From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B637A3857C44; Mon, 11 Dec 2023 00:47:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B637A3857C44 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702255624; bh=d494QgAfhGhsxWx1q5Grz3Fg9p0R2mfhTLV9NNriWZI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bsCEAOGSNX4fIGzMUuMXEybPjyNnR1rHjommxoi1D6Y9PX06X55Hh8BlCbTg+cKLM 7Qik90dOHA5Khgnm+PMj2d0YYtwrOrZx5r/CQjduidy7J+qbrkOBqkK0ny26CA7YDP Pcz27flWjcac0tdvktOTfTSvB/4MYuG69qDMLUXw= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112707] [14 regression] gcc 14 outputs invalid assembly on ppc: Error: unrecognized opcode: `fctid' Date: Mon, 11 Dec 2023 00:47:04 +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: 14.0 X-Bugzilla-Keywords: assemble-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: guihaoc at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.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=3D112707 --- Comment #16 from GCC Commits --- The master branch has been updated by HaoChen Gui : https://gcc.gnu.org/g:ae226cb1ee17d61c416c9d4d8c5a142788b8afff commit r14-6392-gae226cb1ee17d61c416c9d4d8c5a142788b8afff Author: Haochen Gui Date: Mon Dec 11 08:41:55 2023 +0800 rs6000: Guard fctid on PowerPC64 and PowerPC476 fctid is only supported on 64-bit Power processors and powerpc 476. It should be guarded by this condition. The patch fixes the issue. gcc/ PR target/112707 * config/rs6000/rs6000.h (TARGET_FCTID): Define. * config/rs6000/rs6000.md (lrintdi2): Add guard TARGET_FC= TID. * (lrounddi2): Replace TARGET_FPRND with TARGET_FCTID. gcc/testsuite/ PR target/112707 * gcc.target/powerpc/pr112707.h: New. * gcc.target/powerpc/pr112707-2.c: New. * gcc.target/powerpc/pr112707-3.c: New. * gcc.target/powerpc/pr88558-p7.c: Check fctid on ilp32 and has_arch_ppc64 as it's now guarded by powerpc64. * gcc.target/powerpc/pr88558-p8.c: Likewise. * gfortran.dg/nint_p7.f90: Add powerpc64 target requirement as lrounddi2 is now guarded by powerpc64.=