This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Enable -mcpu=power8 for PowerPC
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Peter Bergner <bergner at vnet dot ibm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Michael Meissner <meissner at linux dot ibm dot com>
- Date: Tue, 6 Nov 2012 10:35:39 -0500
- Subject: Re: [PATCH] Enable -mcpu=power8 for PowerPC
- References: <1352177675.4636.34.camel@otta>
On Mon, Nov 5, 2012 at 11:54 PM, Peter Bergner <bergner@vnet.ibm.com> wrote:
> This patch enables new -mcpu and -mtune options for POWER8. The -mcpu=power8
> option currently is just an alias for power7. The affect of these options
> will be expanded when more technical details are released by IBM.
>
> Bootstrapped and regtested on powerpc64-linux. Ok for mainline or should
> we wait to commit this after stage1 (since Jakub said it was ok in another
> thread) when we commit our base power8 patches?
>
> Peter
>
>
> * doc/invoke.texi (-mcpu=power8): Document.
> * config.in (HAVE_AS_POWER8): New.
> * config.gcc: Add cpu_type power8.
> * configure.ac: (HAVE_AS_POWER8): Check for assembler support for the
> POWER8 instructions.
> * configure: Regenerate.
> * config/rs6000/rs6000.h: (ASM_CPU_POWER8_SPEC): Define.
> (ASM_CPU_SPEC): Pass %(asm_cpu_power8) for -mcpu=power8.
> (EXTRA_SPECS): Add asm_cpu_power8 spec string.
> * config/rs6000/rs6000-cpus.def (processor_target_table): Alias
> POWER8 to POWER7.
> * config/rs6000/driver-rs6000.c (ASM_CPU_SPEC): For -mcpu=power8,
> pass %(asm_cpu_power8)/-mpwr8.
> * config/rs6000/aix53.h: Likewise.
> * config/rs6000/aix61.h: Likewise.
This patch is okay.
Thanks, David