diff options
author | David S. Miller <davem@davemloft.net> | 2012-11-15 21:24:22 +0000 |
---|---|---|
committer | David S. Miller <davem@gcc.gnu.org> | 2012-11-15 13:24:22 -0800 |
commit | 8b98b5fd9f9e4edb38a6b7eeb91b5a77ad91d95c (patch) | |
tree | f03d2f8dce9c22de2316eabb57bfd128e7c91f42 /gcc/config/sparc/niagara4.md | |
parent | 2bf33cdb91a46f5c8ead75a57ec11766f8e6863e (diff) | |
download | gcc-8b98b5fd9f9e4edb38a6b7eeb91b5a77ad91d95c.zip gcc-8b98b5fd9f9e4edb38a6b7eeb91b5a77ad91d95c.tar.gz gcc-8b98b5fd9f9e4edb38a6b7eeb91b5a77ad91d95c.tar.bz2 |
Add support for sparc fused compare-and-branch.
gcc/
2012-11-15 David S. Miller <davem@davemloft.net>
* configure.ac: Add check for assembler SPARC4 instruction
support.
* configure: Rebuild.
* config.in: Add HAVE_AS_SPARC4 section.
* config/sparc/sparc.opt (mcbcond): New option.
* doc/invoke.texi: Document it.
* config/sparc/constraints.md: New constraint 'A' for 5-bit signed
immediates.
* doc/md.texi: Document it.
* config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_CBCOND.
(sparc_option_override): Likewise.
(emit_cbcond_insn): New function.
(emit_conditional_branch_insn): Call it.
(emit_cbcond_nop): New function.
(output_ubranch): Use cbcond, remove label arg.
(output_cbcond): New function.
* config/sparc/sparc-protos.h (output_ubranch): Update.
(output_cbcond): Declare it.
(emit_cbcond_nop): Likewise.
* config/sparc/sparc.md (type attribute): New types 'cbcond'
and uncond_cbcond.
(emit_cbcond_nop): New attribute.
(length attribute): Handle cbcond and uncond_cbcond.
(in_call_delay attribute): Reject cbcond and uncond_cbcond.
(in_branch_delay attribute): Likewise.
(in_uncond_branch_delay attribute): Likewise.
(in_annul_branch_delay attribute): Likewise.
(*cbcond_sp32, *cbcond_sp64): New insn patterns.
(jump): Rewrite into an expander.
(*jump_ubranch, *jump_cbcond): New patterns.
* config/sparc/niagara4.md: Match 'cbcond' in 'n4_cti'.
* config/sparc/sparc.h (AS_NIAGARA4_FLAG): New macro, use it
when target default is niagara4.
(SPARC_SIMM5_P): Define.
* config/sparc/sol2.h (AS_SPARC64_FLAG): Adjust.
(AS_SPARC32_FLAG): Define.
(ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Use
AS_NIAGARA4_FLAG as needed.
From-SVN: r193543
Diffstat (limited to 'gcc/config/sparc/niagara4.md')
-rw-r--r-- | gcc/config/sparc/niagara4.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/sparc/niagara4.md b/gcc/config/sparc/niagara4.md index 272c8ff..26f2391 100644 --- a/gcc/config/sparc/niagara4.md +++ b/gcc/config/sparc/niagara4.md @@ -54,10 +54,10 @@ (eq_attr "type" "store,fpstore")) "(n4_slot0 | n4_slot2) + n4_load_store") -(define_insn_reservation "n4_cti" 2 +(define_insn_reservation "n4_cti" 1 (and (eq_attr "cpu" "niagara4") - (eq_attr "type" "branch,call,sibcall,call_no_delay_slot,uncond_branch,return")) - "n4_slot1, nothing") + (eq_attr "type" "cbcond,uncond_cbcond,branch,call,sibcall,call_no_delay_slot,uncond_branch,return")) + "n4_slot1") (define_insn_reservation "n4_fp" 11 (and (eq_attr "cpu" "niagara4") |