This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH v2 5/6] rs6000: dot for shift/delayed_compare
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dje dot gcc at gmail dot com, Segher Boessenkool <segher at kernel dot crashing dot org>
- Date: Mon, 3 Jun 2013 09:26:55 -0700
- Subject: [PATCH v2 5/6] rs6000: dot for shift/delayed_compare
- References: <cover dot 1370252416 dot git dot segher at kernel dot crashing dot org>
- References: <cover dot 1370252416 dot git dot segher at kernel dot crashing dot org>
Similar, but now for shift and delayed_compare.
2013-06-03 Segher Boessenkool <segher@kernel.crashing.org>
gcc/
* config/rs6000/40x.md: Require dot=no for type=shift; where
type=delayed_compare, also handle type=shift dot=yes.
* config/rs6000/440.md: Ditto.
* config/rs6000/476.md: Ditto.
* config/rs6000/601.md: Ditto.
* config/rs6000/603.md: Ditto.
* config/rs6000/6xx.md: Ditto.
* config/rs6000/7450.md: Ditto.
* config/rs6000/7xx.md: Ditto.
* config/rs6000/cell.md: Ditto.
* config/rs6000/mpc.md: Ditto.
* config/rs6000/power4.md: Ditto.
* config/rs6000/power5.md: Ditto.
* config/rs6000/power6.md: Ditto.
* config/rs6000/power7.md: Ditto.
* config/rs6000/rs64.md: Ditto.
* config/rs6000/titan.md: Ditto.
* config/rs6000/rs6000.c (rs6000_adjust_cost): Add missing
TYPE_DELAYED_COMPARE case, twice.
(is_cracked_insn): Handle TYPE_SHIFT.
---
gcc/config/rs6000/40x.md | 6 +++---
gcc/config/rs6000/440.md | 4 ++--
gcc/config/rs6000/476.md | 6 +++---
gcc/config/rs6000/601.md | 6 +++---
gcc/config/rs6000/603.md | 6 +++---
gcc/config/rs6000/6xx.md | 6 +++---
gcc/config/rs6000/7450.md | 6 +++---
gcc/config/rs6000/7xx.md | 6 +++---
gcc/config/rs6000/cell.md | 8 ++++----
gcc/config/rs6000/e500mc64.md | 2 +-
gcc/config/rs6000/mpc.md | 6 +++---
gcc/config/rs6000/power4.md | 6 +++---
gcc/config/rs6000/power5.md | 7 +++----
gcc/config/rs6000/power6.md | 5 ++++-
gcc/config/rs6000/power7.md | 6 +++---
gcc/config/rs6000/rs6000.c | 5 ++++-
gcc/config/rs6000/rs64.md | 8 ++++----
gcc/config/rs6000/titan.md | 4 ++--
18 files changed, 54 insertions(+), 49 deletions(-)
diff --git a/gcc/config/rs6000/40x.md b/gcc/config/rs6000/40x.md
index 2054e65..ddd0c21 100644
--- a/gcc/config/rs6000/40x.md
+++ b/gcc/config/rs6000/40x.md
@@ -37,9 +37,9 @@ (define_insn_reservation "ppc403-store" 2
"iu_40x")
(define_insn_reservation "ppc403-integer" 1
- (and (ior (eq_attr "type" "integer,insert_word,insert_dword,shift,trap,\
+ (and (ior (eq_attr "type" "integer,insert_word,insert_dword,trap,\
cntlz,exts,isel")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "no")))
(eq_attr "cpu" "ppc403,ppc405"))
"iu_40x")
@@ -57,7 +57,7 @@ (define_insn_reservation "ppc403-three" 1
(define_insn_reservation "ppc403-compare" 3
(and (ior (eq_attr "type" "cmp,fast_compare,compare,delayed_compare,\
var_delayed_compare")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "yes")))
(eq_attr "cpu" "ppc403,ppc405"))
"iu_40x,nothing,bpu_40x")
diff --git a/gcc/config/rs6000/440.md b/gcc/config/rs6000/440.md
index b4abab5..8c18cde 100644
--- a/gcc/config/rs6000/440.md
+++ b/gcc/config/rs6000/440.md
@@ -54,9 +54,9 @@ (define_insn_reservation "ppc440-fpstore" 3
"ppc440_issue,ppc440_l_pipe")
(define_insn_reservation "ppc440-integer" 1
- (and (ior (eq_attr "type" "integer,insert_word,insert_dword,shift,\
+ (and (ior (eq_attr "type" "integer,insert_word,insert_dword,\
trap,cntlz,exts,isel")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "no")))
(eq_attr "cpu" "ppc440"))
"ppc440_issue,ppc440_i_pipe|ppc440_j_pipe")
diff --git a/gcc/config/rs6000/476.md b/gcc/config/rs6000/476.md
index 5448ab2..d68f1a4 100644
--- a/gcc/config/rs6000/476.md
+++ b/gcc/config/rs6000/476.md
@@ -64,8 +64,8 @@ (define_insn_reservation "ppc476-fpstore" 4
ppc476_lj_pipe")
(define_insn_reservation "ppc476-simple-integer" 1
- (and (ior (eq_attr "type" "integer,insert_word,exts,shift")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (ior (eq_attr "type" "integer,insert_word,exts")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "no")))
(eq_attr "cpu" "ppc476"))
"ppc476_issue,\
@@ -80,7 +80,7 @@ (define_insn_reservation "ppc476-complex-integer" 1
(define_insn_reservation "ppc476-compare" 4
(and (ior (eq_attr "type" "compare,delayed_compare,fast_compare,mfcr,mfcrf,\
mtcr,mfjmpr,mtjmpr,var_delayed_compare")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "yes")))
(eq_attr "cpu" "ppc476"))
"ppc476_issue,\
diff --git a/gcc/config/rs6000/601.md b/gcc/config/rs6000/601.md
index 4a7dc3f..06b060f 100644
--- a/gcc/config/rs6000/601.md
+++ b/gcc/config/rs6000/601.md
@@ -46,9 +46,9 @@ (define_insn_reservation "ppc601-fpstore" 3
"iu_ppc601+fpu_ppc601")
(define_insn_reservation "ppc601-integer" 1
- (and (ior (eq_attr "type" "integer,insert_word,insert_dword,shift,\
+ (and (ior (eq_attr "type" "integer,insert_word,insert_dword,\
trap,cntlz,exts,isel")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "no")))
(eq_attr "cpu" "ppc601"))
"iu_ppc601")
@@ -77,7 +77,7 @@ (define_insn_reservation "ppc601-idiv" 36
; execute on the branch unit.
(define_insn_reservation "ppc601-compare" 3
(and (ior (eq_attr "type" "cmp,compare,delayed_compare,var_delayed_compare")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "yes")))
(eq_attr "cpu" "ppc601"))
"iu_ppc601,nothing,bpu_ppc601")
diff --git a/gcc/config/rs6000/603.md b/gcc/config/rs6000/603.md
index 05f2599..2a9e882 100644
--- a/gcc/config/rs6000/603.md
+++ b/gcc/config/rs6000/603.md
@@ -58,9 +58,9 @@ (define_insn_reservation "ppc603-storec" 8
"lsu_603")
(define_insn_reservation "ppc603-integer" 1
- (and (ior (eq_attr "type" "integer,insert_word,insert_dword,shift,trap,\
+ (and (ior (eq_attr "type" "integer,insert_word,insert_dword,trap,\
cntlz,exts,isel")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "no")))
(eq_attr "cpu" "ppc603"))
"iu_603")
@@ -94,7 +94,7 @@ (define_insn_reservation "ppc603-idiv" 37
(define_insn_reservation "ppc603-compare" 3
(and (ior (eq_attr "type" "cmp,fast_compare,compare,delayed_compare,\
var_delayed_compare")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "yes")))
(eq_attr "cpu" "ppc603"))
"iu_603,nothing,bpu_603")
diff --git a/gcc/config/rs6000/6xx.md b/gcc/config/rs6000/6xx.md
index 7c1528a..2e5d846 100644
--- a/gcc/config/rs6000/6xx.md
+++ b/gcc/config/rs6000/6xx.md
@@ -73,9 +73,9 @@ (define_insn_reservation "ppc630-llsc" 4
"lsu_6xx")
(define_insn_reservation "ppc604-integer" 1
- (and (ior (eq_attr "type" "integer,insert_word,insert_dword,shift,trap,\
+ (and (ior (eq_attr "type" "integer,insert_word,insert_dword,trap,\
cntlz,exts,isel")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "no")))
(eq_attr "cpu" "ppc604,ppc604e,ppc620,ppc630"))
"iu1_6xx|iu2_6xx")
@@ -143,7 +143,7 @@ (define_insn_reservation "ppc620-ldiv" 37
(define_insn_reservation "ppc604-compare" 3
(and (ior (eq_attr "type" "cmp,fast_compare,compare,delayed_compare,\
var_delayed_compare")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "yes")))
(eq_attr "cpu" "ppc604,ppc604e,ppc620,ppc630"))
"(iu1_6xx|iu2_6xx)")
diff --git a/gcc/config/rs6000/7450.md b/gcc/config/rs6000/7450.md
index 46dcc81..2de6ad8 100644
--- a/gcc/config/rs6000/7450.md
+++ b/gcc/config/rs6000/7450.md
@@ -74,9 +74,9 @@ (define_insn_reservation "ppc7450-sync" 35
"ppc7450_du,lsu_7450")
(define_insn_reservation "ppc7450-integer" 1
- (and (ior (eq_attr "type" "integer,insert_word,insert_dword,shift,\
+ (and (ior (eq_attr "type" "integer,insert_word,insert_dword,\
trap,cntlz,exts,isel")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "no")))
(eq_attr "cpu" "ppc7450"))
"ppc7450_du,iu1_7450|iu2_7450|iu3_7450")
@@ -110,7 +110,7 @@ (define_insn_reservation "ppc7450-idiv" 23
(define_insn_reservation "ppc7450-compare" 2
(and (ior (eq_attr "type" "cmp,fast_compare,compare,delayed_compare,\
var_delayed_compare")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "yes")))
(eq_attr "cpu" "ppc7450"))
"ppc7450_du,(iu1_7450|iu2_7450|iu3_7450)")
diff --git a/gcc/config/rs6000/7xx.md b/gcc/config/rs6000/7xx.md
index 2085e79..768d8db 100644
--- a/gcc/config/rs6000/7xx.md
+++ b/gcc/config/rs6000/7xx.md
@@ -64,9 +64,9 @@ (define_insn_reservation "ppc750-storec" 8
"ppc750_du,lsu_7xx")
(define_insn_reservation "ppc750-integer" 1
- (and (ior (eq_attr "type" "integer,insert_word,insert_dword,shift,\
+ (and (ior (eq_attr "type" "integer,insert_word,insert_dword,\
trap,cntlz,exts,isel")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "no")))
(eq_attr "cpu" "ppc750,ppc7400"))
"ppc750_du,iu1_7xx|iu2_7xx")
@@ -104,7 +104,7 @@ (define_insn_reservation "ppc750-idiv" 19
(define_insn_reservation "ppc750-compare" 2
(and (ior (eq_attr "type" "cmp,fast_compare,compare,delayed_compare,\
var_delayed_compare")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "yes")))
(eq_attr "cpu" "ppc750,ppc7400"))
"ppc750_du,(iu1_7xx|iu2_7xx)")
diff --git a/gcc/config/rs6000/cell.md b/gcc/config/rs6000/cell.md
index b2ea065..7bc792a 100644
--- a/gcc/config/rs6000/cell.md
+++ b/gcc/config/rs6000/cell.md
@@ -155,8 +155,8 @@ (define_insn_reservation "cell-vecstore" 1
;; Integer latency is 2 cycles
(define_insn_reservation "cell-integer" 2
- (and (ior (eq_attr "type" "integer,insert_dword,shift,trap,cntlz,exts,isel")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (ior (eq_attr "type" "integer,insert_dword,trap,cntlz,exts,isel")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "no")))
(eq_attr "cpu" "cell"))
"slot01,fxu_cell")
@@ -189,7 +189,7 @@ (define_insn_reservation "cell-cmp" 1
(define_insn_reservation "cell-fast-cmp" 2
(and (ior (eq_attr "type" "fast_compare,delayed_compare,compare,\
var_delayed_compare")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "yes")))
(eq_attr "cpu" "cell")
(eq_attr "cell_micro" "not"))
@@ -198,7 +198,7 @@ (define_insn_reservation "cell-fast-cmp" 2
(define_insn_reservation "cell-cmp-microcoded" 9
(and (ior (eq_attr "type" "fast_compare,delayed_compare,compare,\
var_delayed_compare")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "yes")))
(eq_attr "cpu" "cell")
(eq_attr "cell_micro" "always"))
diff --git a/gcc/config/rs6000/e500mc64.md b/gcc/config/rs6000/e500mc64.md
index b238335..a3e6ea1 100644
--- a/gcc/config/rs6000/e500mc64.md
+++ b/gcc/config/rs6000/e500mc64.md
@@ -75,7 +75,7 @@ (define_insn_reservation "e500mc64_su" 1
"e500mc64_decode,e500mc64_issue+e500mc64_su_stage0+e500mc64_retire")
(define_insn_reservation "e500mc64_su2" 2
- (and (eq_attr "type" "cmp,compare,delayed_compare,fast_compare,trap")
+ (and (eq_attr "type" "cmp,compare,fast_compare,trap")
(eq_attr "cpu" "ppce500mc64"))
"e500mc64_decode,e500mc64_issue+e500mc64_su_stage0,e500mc64_retire")
diff --git a/gcc/config/rs6000/mpc.md b/gcc/config/rs6000/mpc.md
index 19a461f..b6d421a 100644
--- a/gcc/config/rs6000/mpc.md
+++ b/gcc/config/rs6000/mpc.md
@@ -42,9 +42,9 @@ (define_insn_reservation "mpccore-fpload" 2
"lsu_mpc")
(define_insn_reservation "mpccore-integer" 1
- (and (ior (eq_attr "type" "integer,insert_word,insert_dword,shift,trap,\
+ (and (ior (eq_attr "type" "integer,insert_word,insert_dword,trap,\
cntlz,exts,isel")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "no")))
(eq_attr "cpu" "mpccore"))
"iu_mpc")
@@ -73,7 +73,7 @@ (define_insn_reservation "mpccore-idiv" 6
(define_insn_reservation "mpccore-compare" 3
(and (ior (eq_attr "type" "cmp,fast_compare,compare,delayed_compare,\
var_delayed_compare")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "yes")))
(eq_attr "cpu" "mpccore"))
"iu_mpc,nothing,bpu_mpc")
diff --git a/gcc/config/rs6000/power4.md b/gcc/config/rs6000/power4.md
index 72a3355..51369f4 100644
--- a/gcc/config/rs6000/power4.md
+++ b/gcc/config/rs6000/power4.md
@@ -185,8 +185,8 @@ (define_insn_reservation "power4-llsc" 11
; Integer latency is 2 cycles
(define_insn_reservation "power4-integer" 2
- (and (ior (eq_attr "type" "integer,insert_dword,shift,trap,cntlz,exts,isel")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (ior (eq_attr "type" "integer,insert_dword,trap,cntlz,exts,isel")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "no")))
(eq_attr "cpu" "power4"))
"iq_power4")
@@ -228,7 +228,7 @@ (define_insn_reservation "power4-cmp" 3
(define_insn_reservation "power4-compare" 2
(and (ior (eq_attr "type" "compare,delayed_compare,var_delayed_compare")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "yes")))
(eq_attr "cpu" "power4"))
"(du1_power4+du2_power4|du2_power4+du3_power4|du3_power4+du4_power4),\
diff --git a/gcc/config/rs6000/power5.md b/gcc/config/rs6000/power5.md
index 54853d7..a7f617f 100644
--- a/gcc/config/rs6000/power5.md
+++ b/gcc/config/rs6000/power5.md
@@ -141,9 +141,8 @@ (define_insn_reservation "power5-llsc" 11
; Integer latency is 2 cycles
(define_insn_reservation "power5-integer" 2
- (and (ior (eq_attr "type" "integer,insert_dword,shift,trap,\
- cntlz,exts,isel,popcnt")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (ior (eq_attr "type" "integer,insert_dword,trap,cntlz,exts,isel,popcnt")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "no")))
(eq_attr "cpu" "power5"))
"iq_power5")
@@ -182,7 +181,7 @@ (define_insn_reservation "power5-cmp" 3
(define_insn_reservation "power5-compare" 2
(and (ior (eq_attr "type" "compare,delayed_compare,var_delayed_compare")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "yes")))
(eq_attr "cpu" "power5"))
"du1_power5+du2_power5,iu1_power5,iu2_power5")
diff --git a/gcc/config/rs6000/power6.md b/gcc/config/rs6000/power6.md
index f4082e9..c6765aa 100644
--- a/gcc/config/rs6000/power6.md
+++ b/gcc/config/rs6000/power6.md
@@ -213,6 +213,7 @@ (define_insn_reservation "power6-exts" 1
(define_insn_reservation "power6-shift" 1
(and (eq_attr "type" "shift")
+ (eq_attr "dot" "no")
(eq_attr "cpu" "power6"))
"FXU_power6")
@@ -323,7 +324,9 @@ (define_bypass 1 "power6-compare,\
"store_data_bypass_p")
(define_insn_reservation "power6-delayed-compare" 2 ; N/A
- (and (eq_attr "type" "delayed_compare")
+ (and (ior (eq_attr "type" "delayed_compare")
+ (and (eq_attr "type" "shift")
+ (eq_attr "dot" "yes")))
(eq_attr "cpu" "power6"))
"FXU_power6")
diff --git a/gcc/config/rs6000/power7.md b/gcc/config/rs6000/power7.md
index 7b999d1..bc9c663 100644
--- a/gcc/config/rs6000/power7.md
+++ b/gcc/config/rs6000/power7.md
@@ -149,9 +149,9 @@ (define_insn_reservation "power7-sync" 11
; FX Unit
(define_insn_reservation "power7-integer" 1
- (and (ior (eq_attr "type" "integer,insert_word,insert_dword,shift,trap,\
+ (and (ior (eq_attr "type" "integer,insert_word,insert_dword,trap,\
exts,isel,popcnt")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "no")))
(eq_attr "cpu" "power7"))
"DU_power7,FXU_power7")
@@ -178,7 +178,7 @@ (define_insn_reservation "power7-cmp" 1
(define_insn_reservation "power7-compare" 2
(and (ior (eq_attr "type" "compare,delayed_compare,var_delayed_compare")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "yes")))
(eq_attr "cpu" "power7"))
"DU2F_power7,FXU_power7,FXU_power7")
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index e0d1112..dfcb3d7 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -23217,6 +23217,7 @@ rs6000_adjust_cost (rtx insn, rtx link, rtx dep_insn, int cost)
case TYPE_FAST_COMPARE:
case TYPE_EXTS:
case TYPE_SHIFT:
+ case TYPE_DELAYED_COMPARE:
case TYPE_INSERT_WORD:
case TYPE_INSERT_DWORD:
case TYPE_FPLOAD_U:
@@ -23299,6 +23300,7 @@ rs6000_adjust_cost (rtx insn, rtx link, rtx dep_insn, int cost)
case TYPE_FAST_COMPARE:
case TYPE_EXTS:
case TYPE_SHIFT:
+ case TYPE_DELAYED_COMPARE:
case TYPE_INSERT_WORD:
case TYPE_INSERT_DWORD:
case TYPE_FPLOAD_U:
@@ -23472,7 +23474,8 @@ is_cracked_insn (rtx insn)
|| type == TYPE_IDIV || type == TYPE_LDIV
|| type == TYPE_INSERT_WORD)
return true;
- if (get_attr_dot (insn) == DOT_YES && type == TYPE_VAR_SHIFT_ROTATE)
+ if (get_attr_dot (insn) == DOT_YES
+ && (type == TYPE_SHIFT || type == TYPE_VAR_SHIFT_ROTATE))
return true;
}
diff --git a/gcc/config/rs6000/rs64.md b/gcc/config/rs6000/rs64.md
index 546f0cb..4b0d5e7 100644
--- a/gcc/config/rs6000/rs64.md
+++ b/gcc/config/rs6000/rs64.md
@@ -46,9 +46,9 @@ (define_insn_reservation "rs64a-llsc" 2
"lsu_rs64")
(define_insn_reservation "rs64a-integer" 1
- (and (ior (eq_attr "type" "integer,insert_word,insert_dword,shift,trap,\
+ (and (ior (eq_attr "type" "integer,insert_word,insert_dword,trap,\
cntlz,exts,isel")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "no")))
(eq_attr "cpu" "rs64a"))
"iu_rs64")
@@ -95,8 +95,8 @@ (define_insn_reservation "rs64a-ldiv" 66
(define_insn_reservation "rs64a-compare" 3
(and (ior (eq_attr "type" "cmp,fast_compare,compare,\
- delayed_compare,var_delayed_compare")
- (and (eq_attr "type" "var_shift_rotate")
+ delayed_compare,var_delayed_compare")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "yes")))
(eq_attr "cpu" "rs64a"))
"iu_rs64,nothing,bpu_rs64")
diff --git a/gcc/config/rs6000/titan.md b/gcc/config/rs6000/titan.md
index c3830f1..f92a035 100644
--- a/gcc/config/rs6000/titan.md
+++ b/gcc/config/rs6000/titan.md
@@ -55,8 +55,8 @@ (define_insn_reservation "titan_mulhw" 4
(define_bypass 2 "titan_mulhw" "titan_mulhw")
(define_insn_reservation "titan_fxu_shift_and_rotate" 2
- (and (ior (eq_attr "type" "insert_word,shift,cntlz")
- (and (eq_attr "type" "var_shift_rotate")
+ (and (ior (eq_attr "type" "insert_word,cntlz")
+ (and (eq_attr "type" "shift,var_shift_rotate")
(eq_attr "dot" "no")))
(eq_attr "cpu" "titan"))
"titan_issue,titan_fxu_sh,nothing*2,titan_fxu_wb")
--
1.8.1.4