public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, rs6000] Add Power9 asm entries
@ 2016-01-20 21:21 Pat Haugen
  2016-01-21 13:29 ` David Edelsohn
  0 siblings, 1 reply; 2+ messages in thread
From: Pat Haugen @ 2016-01-20 21:21 UTC (permalink / raw)
  To: GCC Patches; +Cc: David Edelsohn

The following adds a couple missed Power9 assembler option entries. 
Bootstrapped on ppc64. Ok for trunk?

-Pat

2016-01-20  Pat Haugen  <pthaugen@us.ibm.com>

         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.

Index: config/rs6000/aix71.h
===================================================================
--- config/rs6000/aix71.h	(revision 232629)
+++ config/rs6000/aix71.h	(working copy)
@@ -80,6 +80,7 @@ do {									\
  %{mcpu=power6x: -mpwr6} \
  %{mcpu=power7: -mpwr7} \
  %{mcpu=power8: -mpwr8} \
+%{mcpu=power9: -mpwr9} \
  %{mcpu=powerpc: -mppc} \
  %{mcpu=rs64a: -mppc} \
  %{mcpu=603: -m603} \
Index: config/rs6000/driver-rs6000.c
===================================================================
--- config/rs6000/driver-rs6000.c	(revision 232629)
+++ config/rs6000/driver-rs6000.c	(working copy)
@@ -361,6 +361,7 @@ static const struct asm_name asm_names[]
    { "power6x",	"-mpwr6" },
    { "power7",	"-mpwr7" },
    { "power8",	"-mpwr8" },
+  { "power9",	"-mpwr9" },
    { "powerpc",	"-mppc" },
    { "rs64a",	"-mppc" },
    { "603",	"-m603" },
@@ -387,6 +388,7 @@ static const struct asm_name asm_names[]
    { "power6x",	"%(asm_cpu_power6) -maltivec" },
    { "power7",	"%(asm_cpu_power7)" },
    { "power8",	"%(asm_cpu_power8)" },
+  { "power9",	"%(asm_cpu_power9)" },
    { "powerpc",	"-mppc" },
    { "rs64a",	"-mppc64" },
    { "401",	"-mppc" },

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

* Re: [PATCH, rs6000] Add Power9 asm entries
  2016-01-20 21:21 [PATCH, rs6000] Add Power9 asm entries Pat Haugen
@ 2016-01-21 13:29 ` David Edelsohn
  0 siblings, 0 replies; 2+ messages in thread
From: David Edelsohn @ 2016-01-21 13:29 UTC (permalink / raw)
  To: Pat Haugen; +Cc: GCC Patches

On Wed, Jan 20, 2016 at 4:21 PM, Pat Haugen <pthaugen@linux.vnet.ibm.com> wrote:
> The following adds a couple missed Power9 assembler option entries.
> Bootstrapped on ppc64. Ok for trunk?
>
> -Pat
>
> 2016-01-20  Pat Haugen  <pthaugen@us.ibm.com>
>
>         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
>         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.

Okay.

We still need to find out the magic number that AIX will return for Power9.

Thanks, David

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

end of thread, other threads:[~2016-01-21 13:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-20 21:21 [PATCH, rs6000] Add Power9 asm entries Pat Haugen
2016-01-21 13:29 ` David Edelsohn

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).