aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1995-12-22 21:03:01 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1995-12-22 21:03:01 +0000
commitda0ae67f753942119eb4e70a1947b985ff92d7d9 (patch)
tree99837b91077ff5fab66b29fec064a51d1d87c40f /gcc
parent628448b35cdad27bf9064a252265a8c7f634091f (diff)
downloadgcc-da0ae67f753942119eb4e70a1947b985ff92d7d9.zip
gcc-da0ae67f753942119eb4e70a1947b985ff92d7d9.tar.gz
gcc-da0ae67f753942119eb4e70a1947b985ff92d7d9.tar.bz2
Readd 403 support; Move compares well ahead of branch for PowerPC
From-SVN: r10832
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/rs6000/rs6000.md16
1 files changed, 13 insertions, 3 deletions
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index f3b10f0..5da324c 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -65,7 +65,7 @@
(define_function_unit "iu" 1 0
(and (eq_attr "type" "load")
- (eq_attr "cpu" "rios1,ppc601"))
+ (eq_attr "cpu" "rios1,ppc601,ppc403"))
2 1)
(define_function_unit "iu" 1 0
@@ -87,6 +87,11 @@
(define_function_unit "iu" 1 0
(and (eq_attr "type" "imul")
+ (eq_attr "cpu" "ppc403"))
+ 4 4)
+
+(define_function_unit "iu" 1 0
+ (and (eq_attr "type" "imul")
(eq_attr "cpu" "ppc601,ppc602,ppc603"))
5 5)
@@ -102,6 +107,11 @@
(define_function_unit "iu" 1 0
(and (eq_attr "type" "idiv")
+ (eq_attr "cpu" "ppc403"))
+ 33 33)
+
+(define_function_unit "iu" 1 0
+ (and (eq_attr "type" "idiv")
(eq_attr "cpu" "ppc602,ppc603"))
37 36)
@@ -175,7 +185,7 @@
(define_function_unit "bpu" 1 0
(and (eq_attr "type" "compare")
- (eq_attr "cpu" "rios1,rios2,ppc601"))
+ (eq_attr "cpu" "rios1,rios2,ppc403,ppc601,ppc603,ppc604,ppc620"))
4 1)
; different machines have different compare timings
@@ -224,7 +234,7 @@
(define_function_unit "bpu" 1 0
(and (eq_attr "type" "mtjmpr")
- (eq_attr "cpu" "ppc601,ppc602,ppc603,ppc604,ppc620"))
+ (eq_attr "cpu" "ppc403,ppc601,ppc602,ppc603,ppc604,ppc620"))
4 0)
; all jumps/branches are executing on the bpu, in 1 cycle, for all machines.