From 7f15413b4d7f06fb190be78f05f975262440befb Mon Sep 17 00:00:00 2001 From: segher Date: Fri, 23 May 2014 16:43:31 +0000 Subject: rs6000: Make all add instructions one type They are currently just "integer", but the dot version is fast_compare. This makes them all "add". Later we should introduce attributes to distinguish e.g. addc and adde (which aren't currently handled as separate instructions at all, only in groups). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210871 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/rs6000/e300c2c3.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gcc/config/rs6000/e300c2c3.md') diff --git a/gcc/config/rs6000/e300c2c3.md b/gcc/config/rs6000/e300c2c3.md index 26a449d4a05..ccc8cc3edf4 100644 --- a/gcc/config/rs6000/e300c2c3.md +++ b/gcc/config/rs6000/e300c2c3.md @@ -84,7 +84,7 @@ ;; Compares can be executed either one of the IU or SRU (define_insn_reservation "ppce300c3_cmp" 1 (and (ior (eq_attr "type" "cmp,compare,fast_compare") - (and (eq_attr "type" "shift") + (and (eq_attr "type" "add,shift") (eq_attr "dot" "yes"))) (ior (eq_attr "cpu" "ppce300c2") (eq_attr "cpu" "ppce300c3"))) "ppce300c3_decode,ppce300c3_issue+(ppce300c3_iu_stage0|ppce300c3_sru_stage0) \ @@ -92,7 +92,9 @@ ;; Other one cycle IU insns (define_insn_reservation "ppce300c3_iu" 1 - (and (eq_attr "type" "integer,insert,isel") + (and (ior (eq_attr "type" "integer,insert,isel") + (and (eq_attr "type" "add") + (eq_attr "dot" "no"))) (ior (eq_attr "cpu" "ppce300c2") (eq_attr "cpu" "ppce300c3"))) "ppce300c3_decode,ppce300c3_issue+ppce300c3_iu_stage0+ppce300c3_retire") -- cgit v1.2.1