From: jose.marchesi@oracle.com (Jose E. Marchesi)
To: Eric Botcazou <ebotcazou@adacore.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH v1] Support for SPARC M7 and VIS 4.0
Date: Mon, 06 Jun 2016 11:42:00 -0000 [thread overview]
Message-ID: <87k2i2wn85.fsf@oracle.com> (raw)
In-Reply-To: <2399818.dCi8S1UfyB@polaris> (Eric Botcazou's message of "Fri, 03 Jun 2016 10:15:36 +0200")
> This patch adds support for -mcpu=niagara7, corresponding to the SPARC
> M7 CPU as documented in the Oracle SPARC Architecture 2015 and the M7
> Processor Supplement. The patch also includes intrinsics support for
> all the VIS 4.0 instructions.
>
> This patch has been tested in sparc64-*-linux-gnu, sparcv9-*-linux-gnu
> and sparc-sun-solaris2.11 targets.
>
> gcc/ChangeLog:
>
> * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
> Include the M7 SPARC DFA scheduler.
> New attribute v3pipe.
> Annotate insns with v3pipe where appropriate.
> Define cpu_feature vis4.
> Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
> Add (V8QI "8") to vbits.
> Add insns {add,sub}v8qi3
> Add insns ss{add,sub}v8qi3
> Add insns us{add,sub}{v8qi,v4hi}3
> Add insns {min,max}{v8qi,v4hi,v2si}3
> Add insns {minu,maxu}{v8qi,v4hi,v2si}3
> Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
> * config/sparc/niagara4.md: Add a comment explaining the
> discrepancy between the documented latenty numbers and the
> implemented ones.
> * config/sparc/niagara7.md: New file.
> * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
> supports SPARC5 and VIS 4.0 instructions.
> * configure: Regenerate.
> * config.in: Likewise.
> * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
> * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
> TARGET_CPU_niagara7.
> (ASM_CPU64_DEFAULT_SPEC): Likewise.
> (CPP_CPU_SPEC): Handle niagara7.
> (ASM_CPU_SPEC): Likewise.
> * config/sparc/sparc-opts.h (processor_type): Add
> PROCESSOR_NIAGARA7.
> (mvis4): New option.
> * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
> (AS_NIAGARA7_FLAG): Define.
> (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
> (CPP_CPU64_DEFAULT_SPEC): Likewise.
> (CPP_CPU_SPEC): Handle niagara7.
> (ASM_CPU_SPEC): Likewise.
> * config/sparc/sparc.c (niagara7_costs): Define.
> (sparc_option_override): Handle niagara7 and adjust cache-related
> parameters with better values for niagara cpus. Also support VIS4.
> (sparc32_initialize_trampoline): Likewise.
> (sparc_use_sched_lookahead): Likewise.
> (sparc_issue_rate): Likewise.
> (sparc_register_move_cost): Likewise.
> (dump_target_flag_bits): Support VIS4.
> (sparc_vis_init_builtins): Likewise.
> (sparc_builtins): Likewise.
> * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
> VIS4 4.0.
> * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
> UltraSparc M7.
> * config/sparc/sparc.opt (sparc_processor_type): New value
> niagara7.
> * config/sparc/visintrin.h (__attribute__): Prototypes for the
> VIS4 builtins.
> * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
> -mvis4.
> * doc/extend.texi (SPARC VIS Built-in Functions): Document the
> VIS4 builtins.
>
> gcc/testsuite/ChangeLog:
>
> * gcc.target/sparc/vis4misc.c: New file.
> * gcc.target/sparc/fpcmp.c: Likewise.
> * gcc.target/sparc/fpcmpu.c: Likewise.
OK for mainline, thanks. As mentioned yesterday, I think that we should also
put it on the 6 branch, but I can do the backport myself.
Committed to trunk. Thanks.
next prev parent reply other threads:[~2016-06-06 11:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-31 16:15 [PATCH] " Jose E. Marchesi
2016-06-01 9:27 ` Eric Botcazou
2016-06-01 9:55 ` Jose E. Marchesi
2016-06-02 10:33 ` Eric Botcazou
2016-06-02 10:44 ` Jose E. Marchesi
2016-06-02 10:21 ` [PATCH v1] " Jose E. Marchesi
2016-06-03 8:15 ` Eric Botcazou
2016-06-06 11:42 ` Jose E. Marchesi [this message]
2016-06-08 13:55 ` Eric Botcazou
2016-06-08 14:31 ` Gerald Pfeifer
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=87k2i2wn85.fsf@oracle.com \
--to=jose.marchesi@oracle.com \
--cc=ebotcazou@adacore.com \
--cc=gcc-patches@gcc.gnu.org \
/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).