From f5ae5a23ac8380873d4159f7b5428669c8f7ad76 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Wed, 10 Dec 2014 19:40:26 +0100 Subject: [PATCH] 40x.md (ppc403-compare): Remove "compare". * config/rs6000/40x.md (ppc403-compare): Remove "compare". config/rs6000/440.md (ppc440-compare): Remove "compare". config/rs6000/476.md (ppc476-compare): Remove "compare". config/rs6000/601.md (ppc601-compare): Remove "compare". config/rs6000/603.md (ppc603-compare): Remove "compare". config/rs6000/6xx.md (ppc604-compare): Remove "compare". config/rs6000/7450.md (ppc7450-compare): Remove "compare". config/rs6000/7xx.md (ppc750-compare): Remove "compare". config/rs6000/8540.md (ppc8540_su): Remove "compare". config/rs6000/cell.md (cell-fast-cmp, cell-cmp-microcoded): Remove "compare". config/rs6000/e300c2c3.md (ppce300c3_cmp): Remove "compare". config/rs6000/e500mc.md (e500mc_su): Remove "compare". config/rs6000/e500mc64.md (e500mc64_su2): Remove "compare". config/rs6000/e5500.md (e5500_sfx2): Remove "compare". config/rs6000/e6500.md (e6500_sfx2): Remove "compare". config/rs6000/mpc.md (mpccore-compare): Remove "compare". config/rs6000/power4.md (power4-compare): Remove "compare". config/rs6000/power5.md (power5-compare): Remove "compare". config/rs6000/power6.md (power6-compare): Remove "compare". config/rs6000/power7.md (power7-compare): Remove "compare". config/rs6000/power8.md (power8-compare): Remove "compare". Update comment. config/rs6000/rs6000.c (rs6000_adjust_cost) : Remove (three times). (is_cracked_insn): Remove TYPE_COMPARE case. (insn_must_be_first_in_group) : Remove (twice). config/rs6000/rs6000.md (type): Remove "compare". (cell_micro): Remove "compare". config/rs6000/rs64.md (rs64a-compare): Remove "compare". From-SVN: r218597 --- gcc/ChangeLog | 33 +++++++++++++++++++++++++++++++++ gcc/config/rs6000/40x.md | 2 +- gcc/config/rs6000/440.md | 2 +- gcc/config/rs6000/476.md | 2 +- gcc/config/rs6000/601.md | 2 +- gcc/config/rs6000/603.md | 2 +- gcc/config/rs6000/6xx.md | 2 +- gcc/config/rs6000/7450.md | 2 +- gcc/config/rs6000/7xx.md | 2 +- gcc/config/rs6000/8540.md | 2 +- gcc/config/rs6000/cell.md | 10 ++++------ gcc/config/rs6000/e300c2c3.md | 2 +- gcc/config/rs6000/e500mc.md | 2 +- gcc/config/rs6000/e500mc64.md | 2 +- gcc/config/rs6000/e5500.md | 2 +- gcc/config/rs6000/e6500.md | 2 +- gcc/config/rs6000/mpc.md | 2 +- gcc/config/rs6000/power4.md | 5 ++--- gcc/config/rs6000/power5.md | 5 ++--- gcc/config/rs6000/power6.md | 5 ++--- gcc/config/rs6000/power7.md | 5 ++--- gcc/config/rs6000/power8.md | 8 +++----- gcc/config/rs6000/rs6000.c | 6 ------ gcc/config/rs6000/rs6000.md | 4 +--- gcc/config/rs6000/rs64.md | 2 +- 25 files changed, 65 insertions(+), 48 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c815d74db60..272a1ff3225 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,36 @@ +2014-12-10 Segher Boessenkool + + * config/rs6000/40x.md (ppc403-compare): Remove "compare". + config/rs6000/440.md (ppc440-compare): Remove "compare". + config/rs6000/476.md (ppc476-compare): Remove "compare". + config/rs6000/601.md (ppc601-compare): Remove "compare". + config/rs6000/603.md (ppc603-compare): Remove "compare". + config/rs6000/6xx.md (ppc604-compare): Remove "compare". + config/rs6000/7450.md (ppc7450-compare): Remove "compare". + config/rs6000/7xx.md (ppc750-compare): Remove "compare". + config/rs6000/8540.md (ppc8540_su): Remove "compare". + config/rs6000/cell.md (cell-fast-cmp, cell-cmp-microcoded): Remove + "compare". + config/rs6000/e300c2c3.md (ppce300c3_cmp): Remove "compare". + config/rs6000/e500mc.md (e500mc_su): Remove "compare". + config/rs6000/e500mc64.md (e500mc64_su2): Remove "compare". + config/rs6000/e5500.md (e5500_sfx2): Remove "compare". + config/rs6000/e6500.md (e6500_sfx2): Remove "compare". + config/rs6000/mpc.md (mpccore-compare): Remove "compare". + config/rs6000/power4.md (power4-compare): Remove "compare". + config/rs6000/power5.md (power5-compare): Remove "compare". + config/rs6000/power6.md (power6-compare): Remove "compare". + config/rs6000/power7.md (power7-compare): Remove "compare". + config/rs6000/power8.md (power8-compare): Remove "compare". Update + comment. + config/rs6000/rs6000.c (rs6000_adjust_cost) : Remove + (three times). + (is_cracked_insn): Remove TYPE_COMPARE case. + (insn_must_be_first_in_group) : Remove (twice). + config/rs6000/rs6000.md (type): Remove "compare". + (cell_micro): Remove "compare". + config/rs6000/rs64.md (rs64a-compare): Remove "compare". + 2014-12-10 Segher Boessenkool * config/rs6000/rs6000.md (*anddi3_2rld_dot, *anddi3_rld_dot2): diff --git a/gcc/config/rs6000/40x.md b/gcc/config/rs6000/40x.md index 0903536ecd4..650fe523ff9 100644 --- a/gcc/config/rs6000/40x.md +++ b/gcc/config/rs6000/40x.md @@ -53,7 +53,7 @@ "iu_40x,iu_40x,iu_40x") (define_insn_reservation "ppc403-compare" 3 - (and (ior (eq_attr "type" "cmp,compare") + (and (ior (eq_attr "type" "cmp") (and (eq_attr "type" "add,logical,shift,exts") (eq_attr "dot" "yes"))) (eq_attr "cpu" "ppc403,ppc405")) diff --git a/gcc/config/rs6000/440.md b/gcc/config/rs6000/440.md index ff91fdbd7c3..b8a1d335909 100644 --- a/gcc/config/rs6000/440.md +++ b/gcc/config/rs6000/440.md @@ -95,7 +95,7 @@ "ppc440_issue,ppc440_i_pipe") (define_insn_reservation "ppc440-compare" 2 - (and (ior (eq_attr "type" "cmp,compare,cr_logical,delayed_cr,mfcr") + (and (ior (eq_attr "type" "cmp,cr_logical,delayed_cr,mfcr") (and (eq_attr "type" "add,logical,shift,exts") (eq_attr "dot" "yes"))) (eq_attr "cpu" "ppc440")) diff --git a/gcc/config/rs6000/476.md b/gcc/config/rs6000/476.md index 9bfd6b60534..cf477543772 100644 --- a/gcc/config/rs6000/476.md +++ b/gcc/config/rs6000/476.md @@ -77,7 +77,7 @@ ppc476_i_pipe") (define_insn_reservation "ppc476-compare" 4 - (and (ior (eq_attr "type" "compare,mfcr,mfcrf,mtcr,mfjmpr,mtjmpr") + (and (ior (eq_attr "type" "mfcr,mfcrf,mtcr,mfjmpr,mtjmpr") (and (eq_attr "type" "add,logical,shift,exts") (eq_attr "dot" "yes"))) (eq_attr "cpu" "ppc476")) diff --git a/gcc/config/rs6000/601.md b/gcc/config/rs6000/601.md index de51cbfbbaf..af142747d8e 100644 --- a/gcc/config/rs6000/601.md +++ b/gcc/config/rs6000/601.md @@ -74,7 +74,7 @@ ; compare executes on integer unit, but feeds insns which ; execute on the branch unit. (define_insn_reservation "ppc601-compare" 3 - (and (ior (eq_attr "type" "cmp,compare") + (and (ior (eq_attr "type" "cmp") (and (eq_attr "type" "shift,exts") (eq_attr "dot" "yes"))) (eq_attr "cpu" "ppc601")) diff --git a/gcc/config/rs6000/603.md b/gcc/config/rs6000/603.md index dc030181d40..a1457766850 100644 --- a/gcc/config/rs6000/603.md +++ b/gcc/config/rs6000/603.md @@ -93,7 +93,7 @@ "iu_603*37") (define_insn_reservation "ppc603-compare" 3 - (and (ior (eq_attr "type" "cmp,compare") + (and (ior (eq_attr "type" "cmp") (and (eq_attr "type" "add,logical,shift,exts") (eq_attr "dot" "yes"))) (eq_attr "cpu" "ppc603")) diff --git a/gcc/config/rs6000/6xx.md b/gcc/config/rs6000/6xx.md index db8346913d3..8395dbc4f63 100644 --- a/gcc/config/rs6000/6xx.md +++ b/gcc/config/rs6000/6xx.md @@ -147,7 +147,7 @@ "mciu_6xx*36") (define_insn_reservation "ppc604-compare" 3 - (and (ior (eq_attr "type" "cmp,compare") + (and (ior (eq_attr "type" "cmp") (and (eq_attr "type" "add,logical,shift,exts") (eq_attr "dot" "yes"))) (eq_attr "cpu" "ppc604,ppc604e,ppc620,ppc630")) diff --git a/gcc/config/rs6000/7450.md b/gcc/config/rs6000/7450.md index 3679c79ce0a..f790332aa69 100644 --- a/gcc/config/rs6000/7450.md +++ b/gcc/config/rs6000/7450.md @@ -108,7 +108,7 @@ "ppc7450_du,mciu_7450*23") (define_insn_reservation "ppc7450-compare" 2 - (and (ior (eq_attr "type" "cmp,compare") + (and (ior (eq_attr "type" "cmp") (and (eq_attr "type" "add,logical,shift,exts") (eq_attr "dot" "yes"))) (eq_attr "cpu" "ppc7450")) diff --git a/gcc/config/rs6000/7xx.md b/gcc/config/rs6000/7xx.md index b27fe355441..21461f01de1 100644 --- a/gcc/config/rs6000/7xx.md +++ b/gcc/config/rs6000/7xx.md @@ -101,7 +101,7 @@ "ppc750_du,iu1_7xx*19") (define_insn_reservation "ppc750-compare" 2 - (and (ior (eq_attr "type" "cmp,compare") + (and (ior (eq_attr "type" "cmp") (and (eq_attr "type" "add,logical,shift,exts") (eq_attr "dot" "yes"))) (eq_attr "cpu" "ppc750,ppc7400")) diff --git a/gcc/config/rs6000/8540.md b/gcc/config/rs6000/8540.md index 90a3d27d4d9..1487a410f3e 100644 --- a/gcc/config/rs6000/8540.md +++ b/gcc/config/rs6000/8540.md @@ -84,7 +84,7 @@ ;; Simple SU insns (define_insn_reservation "ppc8540_su" 1 - (and (eq_attr "type" "integer,add,logical,insert,cmp,compare,\ + (and (eq_attr "type" "integer,add,logical,insert,cmp,\ shift,trap,cntlz,exts,isel") (eq_attr "cpu" "ppc8540,ppc8548")) "ppc8540_decode,ppc8540_issue+ppc8540_su_stage0+ppc8540_retire") diff --git a/gcc/config/rs6000/cell.md b/gcc/config/rs6000/cell.md index f1ce3526b35..8479bb77b44 100644 --- a/gcc/config/rs6000/cell.md +++ b/gcc/config/rs6000/cell.md @@ -201,17 +201,15 @@ ;; add, addo, sub, subo, alter cr0, rldcli, rlwinm (define_insn_reservation "cell-fast-cmp" 2 - (and (ior (eq_attr "type" "compare") - (and (eq_attr "type" "add,logical,shift,exts") - (eq_attr "dot" "yes"))) + (and (eq_attr "type" "add,logical,shift,exts") + (eq_attr "dot" "yes") (eq_attr "cpu" "cell") (eq_attr "cell_micro" "not")) "slot01,fxu_cell") (define_insn_reservation "cell-cmp-microcoded" 9 - (and (ior (eq_attr "type" "compare") - (and (eq_attr "type" "add,logical,shift,exts") - (eq_attr "dot" "yes"))) + (and (eq_attr "type" "add,logical,shift,exts") + (eq_attr "dot" "yes") (eq_attr "cpu" "cell") (eq_attr "cell_micro" "always")) "slot0+slot1,fxu_cell,fxu_cell*7") diff --git a/gcc/config/rs6000/e300c2c3.md b/gcc/config/rs6000/e300c2c3.md index 276b9e96818..5f733235d5b 100644 --- a/gcc/config/rs6000/e300c2c3.md +++ b/gcc/config/rs6000/e300c2c3.md @@ -83,7 +83,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") + (and (ior (eq_attr "type" "cmp") (and (eq_attr "type" "add,logical,shift,exts") (eq_attr "dot" "yes"))) (ior (eq_attr "cpu" "ppce300c2") (eq_attr "cpu" "ppce300c3"))) diff --git a/gcc/config/rs6000/e500mc.md b/gcc/config/rs6000/e500mc.md index 2af7eb4e37a..85bc7cdbe5e 100644 --- a/gcc/config/rs6000/e500mc.md +++ b/gcc/config/rs6000/e500mc.md @@ -70,7 +70,7 @@ ;; Simple SU insns. (define_insn_reservation "e500mc_su" 1 - (and (eq_attr "type" "integer,add,logical,insert,cmp,compare,\ + (and (eq_attr "type" "integer,add,logical,insert,cmp,\ shift,trap,cntlz,exts,isel") (eq_attr "cpu" "ppce500mc")) "e500mc_decode,e500mc_issue+e500mc_su_stage0+e500mc_retire") diff --git a/gcc/config/rs6000/e500mc64.md b/gcc/config/rs6000/e500mc64.md index dc3eb6a0917..059992f75c1 100644 --- a/gcc/config/rs6000/e500mc64.md +++ b/gcc/config/rs6000/e500mc64.md @@ -79,7 +79,7 @@ "e500mc64_decode,e500mc64_issue+e500mc64_su_stage0+e500mc64_retire") (define_insn_reservation "e500mc64_su2" 2 - (and (ior (eq_attr "type" "cmp,compare,trap") + (and (ior (eq_attr "type" "cmp,trap") (and (eq_attr "type" "add,logical,exts") (eq_attr "dot" "yes")) (and (eq_attr "type" "shift") diff --git a/gcc/config/rs6000/e5500.md b/gcc/config/rs6000/e5500.md index 3cad8bd4667..b0596b60e77 100644 --- a/gcc/config/rs6000/e5500.md +++ b/gcc/config/rs6000/e5500.md @@ -65,7 +65,7 @@ "e5500_decode,e5500_sfx") (define_insn_reservation "e5500_sfx2" 2 - (and (ior (eq_attr "type" "cmp,compare,trap") + (and (ior (eq_attr "type" "cmp,trap") (and (eq_attr "type" "add,logical,exts") (eq_attr "dot" "yes")) (and (eq_attr "type" "shift") diff --git a/gcc/config/rs6000/e6500.md b/gcc/config/rs6000/e6500.md index 9d4b4833b32..6fe062af9f1 100644 --- a/gcc/config/rs6000/e6500.md +++ b/gcc/config/rs6000/e6500.md @@ -69,7 +69,7 @@ "e6500_decode,e6500_sfx") (define_insn_reservation "e6500_sfx2" 2 - (and (ior (eq_attr "type" "cmp,compare,trap") + (and (ior (eq_attr "type" "cmp,trap") (and (eq_attr "type" "add,logical,exts") (eq_attr "dot" "yes")) (and (eq_attr "type" "shift") diff --git a/gcc/config/rs6000/mpc.md b/gcc/config/rs6000/mpc.md index 9ac611a8e13..b1d4cf76294 100644 --- a/gcc/config/rs6000/mpc.md +++ b/gcc/config/rs6000/mpc.md @@ -69,7 +69,7 @@ "mciu_mpc*6") (define_insn_reservation "mpccore-compare" 3 - (and (ior (eq_attr "type" "cmp,compare") + (and (ior (eq_attr "type" "cmp") (and (eq_attr "type" "add,logical,shift,exts") (eq_attr "dot" "yes"))) (eq_attr "cpu" "mpccore")) diff --git a/gcc/config/rs6000/power4.md b/gcc/config/rs6000/power4.md index a436ec7f12b..0c838bb742d 100644 --- a/gcc/config/rs6000/power4.md +++ b/gcc/config/rs6000/power4.md @@ -257,9 +257,8 @@ "iq_power4") (define_insn_reservation "power4-compare" 2 - (and (ior (eq_attr "type" "compare") - (and (eq_attr "type" "shift,exts") - (eq_attr "dot" "yes"))) + (and (eq_attr "type" "shift,exts") + (eq_attr "dot" "yes") (eq_attr "cpu" "power4")) "(du1_power4+du2_power4|du2_power4+du3_power4|du3_power4+du4_power4),\ ((iu1_power4,iu2_power4)\ diff --git a/gcc/config/rs6000/power5.md b/gcc/config/rs6000/power5.md index 530c25590c6..24fde7dfcf2 100644 --- a/gcc/config/rs6000/power5.md +++ b/gcc/config/rs6000/power5.md @@ -210,9 +210,8 @@ "iq_power5") (define_insn_reservation "power5-compare" 2 - (and (ior (eq_attr "type" "compare") - (and (eq_attr "type" "shift,exts") - (eq_attr "dot" "yes"))) + (and (eq_attr "type" "shift,exts") + (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 695f64297fd..60dd1de4246 100644 --- a/gcc/config/rs6000/power6.md +++ b/gcc/config/rs6000/power6.md @@ -334,9 +334,8 @@ "FXU_power6") (define_insn_reservation "power6-compare" 1 - (and (ior (eq_attr "type" "compare") - (and (eq_attr "type" "exts") - (eq_attr "dot" "yes"))) + (and (eq_attr "type" "exts") + (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 8be287953a8..fa1e80f356a 100644 --- a/gcc/config/rs6000/power7.md +++ b/gcc/config/rs6000/power7.md @@ -203,9 +203,8 @@ "DU_power7,FXU_power7") (define_insn_reservation "power7-compare" 2 - (and (ior (eq_attr "type" "compare") - (and (eq_attr "type" "shift,exts") - (eq_attr "dot" "yes"))) + (and (eq_attr "type" "shift,exts") + (eq_attr "dot" "yes") (eq_attr "cpu" "power7")) "DU2F_power7,FXU_power7,FXU_power7") diff --git a/gcc/config/rs6000/power8.md b/gcc/config/rs6000/power8.md index 4b03ac2cbfd..a9b523d9742 100644 --- a/gcc/config/rs6000/power8.md +++ b/gcc/config/rs6000/power8.md @@ -212,12 +212,10 @@ (eq_attr "cpu" "power8")) "DU_any_power8,FXU_power8") -; compare : rldicl./exts./etc -; shift with dot : rlwinm./slwi./rlwnm./slw./etc +; exts/shift with dot : rldicl./exts./rlwinm./slwi./rlwnm./slw./etc (define_insn_reservation "power8-compare" 2 - (and (ior (eq_attr "type" "compare") - (and (eq_attr "type" "shift,exts") - (eq_attr "dot" "yes"))) + (and (eq_attr "type" "shift,exts") + (eq_attr "dot" "yes") (eq_attr "cpu" "power8")) "DU_cracked_power8,FXU_power8,FXU_power8") diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index fc81b79c23b..73152ce47d1 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -26690,7 +26690,6 @@ rs6000_adjust_cost (rtx_insn *insn, rtx link, rtx_insn *dep_insn, int cost) switch (get_attr_type (dep_insn)) { case TYPE_CMP: - case TYPE_COMPARE: case TYPE_FPCOMPARE: case TYPE_CR_LOGICAL: case TYPE_DELAYED_CR: @@ -26747,7 +26746,6 @@ rs6000_adjust_cost (rtx_insn *insn, rtx link, rtx_insn *dep_insn, int cost) case TYPE_INTEGER: case TYPE_ADD: case TYPE_LOGICAL: - case TYPE_COMPARE: case TYPE_EXTS: case TYPE_INSERT: { @@ -26811,7 +26809,6 @@ rs6000_adjust_cost (rtx_insn *insn, rtx link, rtx_insn *dep_insn, int cost) case TYPE_INTEGER: case TYPE_ADD: case TYPE_LOGICAL: - case TYPE_COMPARE: case TYPE_EXTS: case TYPE_INSERT: { @@ -26987,7 +26984,6 @@ is_cracked_insn (rtx_insn *insn) || ((type == TYPE_FPLOAD || type == TYPE_FPSTORE) && get_attr_update (insn) == UPDATE_YES) || type == TYPE_DELAYED_CR - || type == TYPE_COMPARE || (type == TYPE_EXTS && get_attr_dot (insn) == DOT_YES) || (type == TYPE_SHIFT @@ -27865,7 +27861,6 @@ insn_must_be_first_in_group (rtx_insn *insn) case TYPE_MFCRF: case TYPE_MTCR: case TYPE_DIV: - case TYPE_COMPARE: case TYPE_ISYNC: case TYPE_LOAD_L: case TYPE_STORE_C: @@ -27906,7 +27901,6 @@ insn_must_be_first_in_group (rtx_insn *insn) case TYPE_MFCR: case TYPE_MFCRF: case TYPE_MTCR: - case TYPE_COMPARE: case TYPE_SYNC: case TYPE_ISYNC: case TYPE_LOAD_L: diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index f6947efde4b..49086dcbcbc 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -168,7 +168,6 @@ load,store,fpload,fpstore,vecload,vecstore, cmp, branch,jmpreg,mfjmpr,mtjmpr,trap,isync,sync,load_l,store_c, - compare, cr_logical,delayed_cr,mfcr,mfcrf,mtcr, fpcompare,fp,fpsimple,dmul,sdiv,ddiv,ssqrt,dsqrt, brinc, @@ -254,8 +253,7 @@ ;; If this instruction is microcoded on the CELL processor ; The default for load extended, the recorded instructions and rotate/shifts by a variable is always microcoded (define_attr "cell_micro" "not,conditional,always" - (if_then_else (ior (eq_attr "type" "compare") - (and (eq_attr "type" "shift,exts,mul") + (if_then_else (ior (and (eq_attr "type" "shift,exts,mul") (eq_attr "dot" "yes")) (and (eq_attr "type" "load") (eq_attr "sign_extend" "yes")) diff --git a/gcc/config/rs6000/rs64.md b/gcc/config/rs6000/rs64.md index 8925f383105..302389064ed 100644 --- a/gcc/config/rs6000/rs64.md +++ b/gcc/config/rs6000/rs64.md @@ -99,7 +99,7 @@ "mciu_rs64*66") (define_insn_reservation "rs64a-compare" 3 - (and (ior (eq_attr "type" "cmp,compare") + (and (ior (eq_attr "type" "cmp") (and (eq_attr "type" "add,logical,shift,exts") (eq_attr "dot" "yes"))) (eq_attr "cpu" "rs64a")) -- 2.30.2