diff options
author | Sheldon Lobo <sheldon.lobo@oracle.com> | 2017-05-18 09:34:26 +0000 |
---|---|---|
committer | Sheldon Lobo <smlobo@gcc.gnu.org> | 2017-05-18 09:34:26 +0000 |
commit | 00a84d0eddec8e671f48e209fffac7c97e6bc4bf (patch) | |
tree | 3073cf46a77e5e964b3e0c4db99086e8a4fe43b8 /gcc/config/sparc/sparc.h | |
parent | 243c288370fe51ba55c3a9ee61eb2a1a62cb1279 (diff) | |
download | gcc-00a84d0eddec8e671f48e209fffac7c97e6bc4bf.tar.gz |
Minor SPARC T4 and M7 fixes and additions.
* config/sparc/sparc.c (sparc_option_override): Set function
alignment for -mcpu=niagara7 to 64 to match the I$ line.
* config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
latency to 1.
* config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
latency to 2.
* config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
* gcc.target/sparc/niagara7-align.c: New test.
From-SVN: r248184
Diffstat (limited to 'gcc/config/sparc/sparc.h')
-rw-r--r-- | gcc/config/sparc/sparc.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index 590a5f4dbf3..686a3d52193 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -1566,7 +1566,10 @@ do { \ and annulled branches insert 4 bubbles. On Niagara-2 and Niagara-3, a not-taken branch costs 1 cycle whereas - a taken branch costs 6 cycles. */ + a taken branch costs 6 cycles. + + The T4 Supplement specifies the branch latency at 2 cycles. + The M7 Supplement specifies the branch latency at 1 cycle. */ #define BRANCH_COST(speed_p, predictable_p) \ ((sparc_cpu == PROCESSOR_V9 \ @@ -1579,7 +1582,11 @@ do { \ : ((sparc_cpu == PROCESSOR_NIAGARA2 \ || sparc_cpu == PROCESSOR_NIAGARA3) \ ? 5 \ - : 3)))) + : (sparc_cpu == PROCESSOR_NIAGARA4 \ + ? 2 \ + : (sparc_cpu == PROCESSOR_NIAGARA7 \ + ? 1 \ + : 3)))))) /* Control the assembler format that we output. */ |