public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/work158-future)] Set future machine type in assembler if -mcpu=future
@ 2024-02-15 22:35 Michael Meissner
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Meissner @ 2024-02-15 22:35 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:92eaf6de41f184d7e62624a2bd67cfc2aabf8a4e

commit 92eaf6de41f184d7e62624a2bd67cfc2aabf8a4e
Author: Michael Meissner <meissner@linux.ibm.com>
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  <meissner@linux.ibm.com>
    
    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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/users/meissner/heads/work158-future)] Set future machine type in assembler if -mcpu=future
@ 2024-02-10  5:48 Michael Meissner
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Meissner @ 2024-02-10  5:48 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:301dd5b096b5c9263b6176ca86194d7139a449d0

commit 301dd5b096b5c9263b6176ca86194d7139a449d0
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Fri Feb 9 20:13:16 2024 -0500

    Set future machine type in assembler if -mcpu=future
    
    2024-02-09  Michael Meissner  <meissner@linux.ibm.com>
    
    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 5e5e677e1537..6bd537836d1b 100644
--- a/gcc/config/rs6000/rs6000.cc
+++ b/gcc/config/rs6000/rs6000.cc
@@ -5968,6 +5968,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 & (ISA_FUTURE_MASKS_SERVER & ~ISA_3_1_MASKS_SERVER)) != 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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-15 22:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-15 22:35 [gcc(refs/users/meissner/heads/work158-future)] Set future machine type in assembler if -mcpu=future Michael Meissner
  -- strict thread matches above, loose matches on Subject: below --
2024-02-10  5:48 Michael Meissner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).