From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1005) id 714E5386D633; Thu, 15 Feb 2024 22:35:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 714E5386D633 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708036507; bh=4eg3U7h9Ba8TQGzJSTxXLl30FY8KpeCqVu5vuMOLd28=; h=From:To:Subject:Date:From; b=IhvFReX51fonl8K+WPvx1QHX8uqyFKq2aC+yTkA8BASWsRCK3kDdquiNjmc2gBxuH ZJfZt2LxgRXP4GFduZjTO29ZgCXYJDzZzaTrGMlBNV1wfhAYEUvhY7bMnkLsxIt1X8 wIv16IHmeOWHJF+vBFoUG1DGRuwhayeyTPBQ1Ve8= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Michael Meissner To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/meissner/heads/work158-future)] Set future machine type in assembler if -mcpu=future X-Act-Checkin: gcc X-Git-Author: Michael Meissner X-Git-Refname: refs/users/meissner/heads/work158-future X-Git-Oldrev: 3488d556149735237ae5647972e5a5258ccb066f X-Git-Newrev: 92eaf6de41f184d7e62624a2bd67cfc2aabf8a4e Message-Id: <20240215223507.714E5386D633@sourceware.org> Date: Thu, 15 Feb 2024 22:35:05 +0000 (GMT) List-Id: https://gcc.gnu.org/g:92eaf6de41f184d7e62624a2bd67cfc2aabf8a4e commit 92eaf6de41f184d7e62624a2bd67cfc2aabf8a4e Author: Michael Meissner Date: Thu Feb 15 15:05:47 2024 -0500 Set future machine type in assembler if -mcpu=future This patch uses the .machine directive to tell the assembler to use any possible future instructions. 2024-02-15 Michael Meissner gcc/ * config/rs6000/rs6000.cc (rs6000_machine_from_flags): Output .machine future if -mcpu=future. Diff: --- gcc/config/rs6000/rs6000.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc index e8c6cbf25b6f..83ae71e165dd 100644 --- a/gcc/config/rs6000/rs6000.cc +++ b/gcc/config/rs6000/rs6000.cc @@ -5944,6 +5944,8 @@ rs6000_machine_from_flags (void) /* Disable the flags that should never influence the .machine selection. */ flags &= ~(OPTION_MASK_PPC_GFXOPT | OPTION_MASK_PPC_GPOPT | OPTION_MASK_ISEL); + if ((flags & OPTION_MASK_FUTURE) != 0) + return "future"; if ((flags & (ISA_3_1_MASKS_SERVER & ~ISA_3_0_MASKS_SERVER)) != 0) return "power10"; if ((flags & (ISA_3_0_MASKS_SERVER & ~ISA_2_7_MASKS_SERVER)) != 0)