From: David Edelsohn <dje.gcc@gmail.com>
To: Michael Meissner <meissner@linux.vnet.ibm.com>,
GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH], Add power9 support to GCC, patch #5 (ISA 3.0 fusion)
Date: Mon, 09 Nov 2015 18:57:00 -0000 [thread overview]
Message-ID: <CAGWvny=_Fq=_ocRMLaJmaSvoe+qc=hn9DPb0QjuSN9Z4mRrzkQ@mail.gmail.com> (raw)
In-Reply-To: <20151109004204.GE17170@ibm-tiger.the-meissners.org>
On Sun, Nov 8, 2015 at 4:42 PM, Michael Meissner
<meissner@linux.vnet.ibm.com> wrote:
> This patch adds support for new fusion forms in ISA 3.0 (power9). In
> particular, ISA 3.0 can fuse GPR loads of R0, FPR loads, GPR stores, FPR
> stores, and some constant generation that ISA 2.07 (power8) could not
> generate.
>
> I have built this patch with a bootstrap build on a power8 little endian
> system. There were no regressions in the test suite. Is this patch ok to
> install in the trunk once patch #1 has been installed.
>
> [gcc]
> 2015-11-08 Michael Meissner <meissner@linux.vnet.ibm.com>
>
> * config/rs6000/constraints.md (wF constraint): New constraints
> for power9/toc fusion.
> (wG constraint): Likewise.
>
> * config/rs6000/predicates.md (upper16_cint_operand): New
> predicate for power9 and toc fusion.
> (fpr_reg_operand): Likewise.
> (toc_fusion_or_p9_reg_operand): Likewise.
> (toc_fusion_mem_raw): Likewise.
> (toc_fusion_mem_wrapped): Likewise.
> (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
> address range.
> (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
> instead.
> (fusion_addis_mem_combo_load): Add support for power9 fusion of
> floating point loads, floating point stores, and gpr stores.
> (fusion_addis_mem_combo_store): Likewise.
> (fusion_offsettable_mem_operand): Likewise.
>
> * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add
> declarations.
> (emit_fusion_load_store): Likewise.
> (fusion_p9_p): Likewise.
> (expand_fusion_p9_load): Likewise.
> (expand_fusion_p9_store): Likewise.
> (emit_fusion_p9_load): Likewise.
> (emit_fusion_p9_store): Likewise.
> (fusion_wrap_memory_address): Likewise.
>
> * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
> elements for power9 fusion.
> (rs6000_debug_print_mode): Rework debug information to print more
> information about fusion.
> (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion
> support.
> (rs6000_legitimate_address_p): Recognize toc fusion as a valid
> offsettable memory address.
> (emit_fusion_gpr_load): Move most of the code from
> emit_fusion_gpr_load into emit_fusion-addis that handles both
> power8 and power9 fusion.
> (emit_fusion_addis): Likewise.
> (emit_fusion_load_store): Likewise.
> (fusion_wrap_memory_address): Add support for TOC fusion.
> (fusion_split_address): Likewise.
> (fusion_p9_p): Add support for power9 fusion.
> (expand_fusion_p9_load): Likewise.
> (expand_fusion_p9_store): Likewise.
> (emit_fusion_p9_load): Likewise.
> (emit_fusion_p9_store): Likewise.
>
> * config/rs6000/rs6000.h (TARGET_TOC_FUSION_INT): New macros for
> power9 fusion support.
> (TARGET_TOC_FUSION_FP): Likewise.
>
> * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
> fusion unspecs.
> (UNSPEC_FUSION_ADDIS): Likewise.
> (QHSI mode iterator): New iterator for power9 fusion.
> (GPR_FUSION): Likewise.
> (FPR_FUSION): Likewise.
> (power9 fusion splitter): New power9/toc fusion support.
> (toc_fusionload_<mode>): Likewise.
> (toc_fusionload_di): Likewise.
> (fusion_gpr_load_<mode>): Update predicate function.
> (power9 fusion peephole2s): New power9/toc fusion support.
> (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
> (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
> (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
> (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
> (fusion_p9_<mode>_constant): Likewise.
>
> [gcc/testsuite]
> 2015-11-08 Michael Meissner <meissner@linux.vnet.ibm.com>
>
> * gcc.target/powerpc/fusion.c (fusion_vector): Move to fusion2.c
> and allow the test on PowerPC LE.
> * gcc.target/powerpc/fusion2.c (fusion_vector): Likewise.
>
> * gcc.target/powerpc/fusion3.c: New file, test power9 fusion.
Okay, with the changes that you and Segher discussed.
Thanks, David
next prev parent reply other threads:[~2015-11-09 18:57 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-03 20:29 [PATCH], Add power9 support to GCC, patch #1 Michael Meissner
2015-11-04 21:16 ` Segher Boessenkool
2015-11-04 21:27 ` Michael Meissner
2015-11-09 0:33 ` [PATCH], Add power9 support to GCC, patch #1 (revised) Michael Meissner
2015-11-09 16:12 ` David Edelsohn
2015-11-10 18:39 ` [PATCH], Add power9 support to GCC, patch #8 (add integer multiply/add) Michael Meissner
2015-11-12 20:39 ` David Edelsohn
2015-11-09 0:36 ` [PATCH], Add power9 support to GCC, patch #2 (add modulus instructions) Michael Meissner
2015-11-09 15:48 ` Segher Boessenkool
2015-11-09 18:07 ` Michael Meissner
2015-11-09 16:14 ` David Edelsohn
2015-11-10 0:17 ` [PATCH], Add power9 support to GCC, patches #2-5 committed Michael Meissner
2015-11-10 0:20 ` Michael Meissner
2015-11-09 0:38 ` [PATCH], Add power9 support to GCC, patch #3 (scalar count trailing zeros) Michael Meissner
2015-11-09 15:59 ` Segher Boessenkool
2015-11-09 17:18 ` Michael Meissner
2015-11-09 19:33 ` Segher Boessenkool
2015-11-09 18:02 ` David Edelsohn
2015-11-09 0:39 ` [PATCH], Add power9 support to GCC, patch #4 Michael Meissner
2015-11-09 16:29 ` Segher Boessenkool
2015-11-09 17:27 ` Michael Meissner
2015-11-09 19:48 ` Segher Boessenkool
2015-11-09 18:03 ` David Edelsohn
2015-11-09 0:42 ` [PATCH], Add power9 support to GCC, patch #5 (ISA 3.0 fusion) Michael Meissner
2015-11-09 17:16 ` Segher Boessenkool
2015-11-09 17:34 ` Michael Meissner
2015-11-09 19:57 ` Segher Boessenkool
2015-11-09 21:11 ` David Edelsohn
2015-11-09 22:17 ` Michael Meissner
2015-11-09 22:33 ` David Edelsohn
2015-11-09 18:57 ` David Edelsohn [this message]
2015-11-14 22:58 ` Segher Boessenkool
2015-11-09 0:45 ` [PATCH], Add power9 support to GCC, patch #6 (IEEE 128-bit hardware support) Michael Meissner
2015-11-09 19:29 ` Segher Boessenkool
2015-11-10 0:41 ` Joseph Myers
2015-11-10 18:41 ` Michael Meissner
2015-11-12 20:47 ` David Edelsohn
2015-11-13 22:13 ` [PATCH applied], Power9 patches #6-8 (IEEE 128-bit h/w, 128-bit direct move, integer mult/add) Michael Meissner
2015-11-09 0:49 ` [PATCH], Add power9 support to GCC, patch #7 (direct move enhancements) Michael Meissner
2015-11-09 20:00 ` Segher Boessenkool
2015-11-09 21:06 ` Michael Meissner
2015-11-12 20:43 ` David Edelsohn
2015-11-10 20:56 ` [PATCH, applied], Add power9 support to GCC, patch #9 (config.gcc) Michael Meissner
2015-11-10 21:56 ` [PATCH], Add power9 support to GCC, patch #10 (SFmode/DFmode d-form addressing) Michael Meissner
2015-11-11 0:19 ` Segher Boessenkool
2015-11-11 0:26 ` Michael Meissner
2015-11-24 18:08 ` David Edelsohn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGWvny=_Fq=_ocRMLaJmaSvoe+qc=hn9DPb0QjuSN9Z4mRrzkQ@mail.gmail.com' \
--to=dje.gcc@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=meissner@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).