]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000: Make all logical instructions one type
authorSegher Boessenkool <segher@kernel.crashing.org>
Fri, 23 May 2014 16:45:11 +0000 (18:45 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Fri, 23 May 2014 16:45:11 +0000 (18:45 +0200)
They are currently just "integer", but the dot version is fast_compare.
This makes them all "logical".

From-SVN: r210872

25 files changed:
gcc/ChangeLog
gcc/config/rs6000/40x.md
gcc/config/rs6000/440.md
gcc/config/rs6000/476.md
gcc/config/rs6000/603.md
gcc/config/rs6000/6xx.md
gcc/config/rs6000/7450.md
gcc/config/rs6000/7xx.md
gcc/config/rs6000/8540.md
gcc/config/rs6000/cell.md
gcc/config/rs6000/e300c2c3.md
gcc/config/rs6000/e500mc.md
gcc/config/rs6000/e500mc64.md
gcc/config/rs6000/e5500.md
gcc/config/rs6000/e6500.md
gcc/config/rs6000/mpc.md
gcc/config/rs6000/power4.md
gcc/config/rs6000/power5.md
gcc/config/rs6000/power6.md
gcc/config/rs6000/power7.md
gcc/config/rs6000/power8.md
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.md
gcc/config/rs6000/rs64.md
gcc/config/rs6000/titan.md

index c21dfa452b4325d2f2ce87e4803ca675f8b81907..62b03ed89378818c99c9c6c57ae82ca9bb57f3d2 100644 (file)
@@ -1,3 +1,49 @@
+2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * config/rs6000/rs6000.md (type): Add "logical".  Delete
+       "fast_compare".
+       (dot): Adjust comment.
+       (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
+       *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
+       *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
+       anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
+       *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
+       *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
+       *mov<mode>_internal2, and 10 anonymous define_insns): Use
+       "logical".
+       * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
+
+       * config/rs6000/40x.md: (ppc403-integer, ppc403-compare): Adjust.
+       * config/rs6000/440.md: (ppc440-integer, ppc440-compare): Adjust.
+       * config/rs6000/476.md: (ppc476-simple-integer, ppc476-compare):
+       Adjust.
+       * config/rs6000/603.md: (ppc603-integer, ppc603-compare): Adjust.
+       * config/rs6000/6xx.md: (ppc604-integer, ppc604-compare): Adjust.
+       * config/rs6000/7450.md: (ppc7450-integer, ppc7450-compare):
+       Adjust.
+       * config/rs6000/7xx.md: (ppc750-integer, ppc750-compare): Adjust.
+       * config/rs6000/8540.md: (ppc8540_su): Adjust.
+       * config/rs6000/cell.md: (cell-integer, cell-fast-cmp,
+       cell-cmp-microcoded): Adjust.
+       * config/rs6000/e300c2c3.md: (ppce300c3_cmp, ppce300c3_iu):
+       Adjust.
+       * config/rs6000/e500mc.md: (e500mc_su): Adjust.
+       * config/rs6000/e500mc64.md: (e500mc64_su, e500mc64_su2): Adjust.
+       * config/rs6000/e5500.md: (e5500_sfx, e5500_sfx2): Adjust.
+       * config/rs6000/e6500.md: (e6500_sfx, e6500_sfx2): Adjust.
+       * config/rs6000/mpc.md: (mpccore-integer, mpccore-compare):
+       Adjust.
+       * config/rs6000/power4.md: (power4-integer, power4-cmp): Adjust.
+       * config/rs6000/power5.md: (power5-integer, power5-cmp): Adjust.
+       * config/rs6000/power6.md: (power6-integer, power6-fast-compare):
+       Adjust.
+       * config/rs6000/power7.md: (power7-integer, power7-cmp): Adjust.
+       * config/rs6000/power8.md: (power8-1cyc, power8-fast-compare):
+       Adjust.  Adjust comment.
+       * config/rs6000/rs64.md: (rs64a-integer, rs64a-compare): Adjust.
+       * config/rs6000/titan.md: (titan_fxu_adder, titan_fxu_alu):
+       Adjust.
+
 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
 
        * config/rs6000/rs6000.md (type): Add "add".
index 85b9e41110f88fb4c987adc3218356bac51ddb73..b29e06a02f33115ad25195da34fee7f69b6baec6 100644 (file)
@@ -37,7 +37,7 @@
 
 (define_insn_reservation "ppc403-integer" 1
   (and (ior (eq_attr "type" "integer,insert,trap,cntlz,exts,isel")
-           (and (eq_attr "type" "add,shift")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "no")))
        (eq_attr "cpu" "ppc403,ppc405"))
   "iu_40x")
@@ -53,8 +53,8 @@
   "iu_40x,iu_40x,iu_40x")
 
 (define_insn_reservation "ppc403-compare" 3
-  (and (ior (eq_attr "type" "cmp,fast_compare,compare")
-           (and (eq_attr "type" "add,shift")
+  (and (ior (eq_attr "type" "cmp,compare")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "yes")))
        (eq_attr "cpu" "ppc403,ppc405"))
   "iu_40x,nothing,bpu_40x")
index 23f69b1e3ec2d8fe1683726fe33dcfe516ce1f77..bc8da3e27a8e60f877501b8e173f401879131fe0 100644 (file)
@@ -54,7 +54,7 @@
 
 (define_insn_reservation "ppc440-integer" 1
   (and (ior (eq_attr "type" "integer,insert,shift,trap,cntlz,exts,isel")
-           (and (eq_attr "type" "add")
+           (and (eq_attr "type" "add,logical")
                 (eq_attr "dot" "no")))
        (eq_attr "cpu" "ppc440"))
   "ppc440_issue,ppc440_i_pipe|ppc440_j_pipe")
@@ -95,8 +95,8 @@
   "ppc440_issue,ppc440_i_pipe")
 
 (define_insn_reservation "ppc440-compare" 2
-  (and (ior (eq_attr "type" "cmp,fast_compare,compare,cr_logical,delayed_cr,mfcr")
-           (and (eq_attr "type" "add")
+  (and (ior (eq_attr "type" "cmp,compare,cr_logical,delayed_cr,mfcr")
+           (and (eq_attr "type" "add,logical")
                 (eq_attr "dot" "yes")))
        (eq_attr "cpu" "ppc440"))
   "ppc440_issue,ppc440_i_pipe")
index dd39bc256554d166742c02b9b19ef1f52a739500..4c879f467acb14a653a743fc7416ca1b777ffef0 100644 (file)
@@ -64,7 +64,7 @@
 
 (define_insn_reservation "ppc476-simple-integer" 1
   (and (ior (eq_attr "type" "integer,insert,exts")
-           (and (eq_attr "type" "add,shift")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "no")))
        (eq_attr "cpu" "ppc476"))
   "ppc476_issue,\
@@ -77,9 +77,8 @@
    ppc476_i_pipe")
 
 (define_insn_reservation "ppc476-compare" 4
-  (and (ior (eq_attr "type" "compare,fast_compare,mfcr,mfcrf,\
-                             mtcr,mfjmpr,mtjmpr")
-           (and (eq_attr "type" "add,shift")
+  (and (ior (eq_attr "type" "compare,mfcr,mfcrf,mtcr,mfjmpr,mtjmpr")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "yes")))
        (eq_attr "cpu" "ppc476"))
   "ppc476_issue,\
index 0db3f426a2baf3a42a1a8a9f15a8976b60035390..871957aa56031c8d992ce9bfadad27ee162d008b 100644 (file)
@@ -59,7 +59,7 @@
 
 (define_insn_reservation "ppc603-integer" 1
   (and (ior (eq_attr "type" "integer,insert,trap,cntlz,exts,isel")
-           (and (eq_attr "type" "add,shift")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "no")))
        (eq_attr "cpu" "ppc603"))
   "iu_603")
@@ -93,8 +93,8 @@
   "iu_603*37")
 
 (define_insn_reservation "ppc603-compare" 3
-  (and (ior (eq_attr "type" "cmp,fast_compare,compare")
-           (and (eq_attr "type" "add,shift")
+  (and (ior (eq_attr "type" "cmp,compare")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "yes")))
        (eq_attr "cpu" "ppc603"))
   "iu_603,nothing,bpu_603")
index fc9d857c0d64e9c04d9aa2d7f12ca403610e5ab1..9d6ba050063c2ad530f3cacf36bffc90f717f8d2 100644 (file)
@@ -74,7 +74,7 @@
   
 (define_insn_reservation "ppc604-integer" 1
   (and (ior (eq_attr "type" "integer,insert,trap,cntlz,exts,isel")
-           (and (eq_attr "type" "add,shift")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "no")))
        (eq_attr "cpu" "ppc604,ppc604e,ppc620,ppc630"))
   "iu1_6xx|iu2_6xx")
   "mciu_6xx*36")
 
 (define_insn_reservation "ppc604-compare" 3
-  (and (ior (eq_attr "type" "cmp,fast_compare,compare")
-           (and (eq_attr "type" "add,shift")
+  (and (ior (eq_attr "type" "cmp,compare")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "yes")))
        (eq_attr "cpu" "ppc604,ppc604e,ppc620,ppc630"))
   "(iu1_6xx|iu2_6xx)")
index 3c75d05c931e24c6aa5e70f1705e4cb77a3122b8..4271efaa10bc6b012184292ea8dc42c98fa25789 100644 (file)
@@ -74,7 +74,7 @@
 
 (define_insn_reservation "ppc7450-integer" 1
   (and (ior (eq_attr "type" "integer,insert,trap,cntlz,exts,isel")
-           (and (eq_attr "type" "add,shift")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "no")))
        (eq_attr "cpu" "ppc7450"))
   "ppc7450_du,iu1_7450|iu2_7450|iu3_7450")
   "ppc7450_du,mciu_7450*23")
 
 (define_insn_reservation "ppc7450-compare" 2
-  (and (ior (eq_attr "type" "cmp,fast_compare,compare")
-           (and (eq_attr "type" "add,shift")
+  (and (ior (eq_attr "type" "cmp,compare")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "yes")))
        (eq_attr "cpu" "ppc7450"))
   "ppc7450_du,(iu1_7450|iu2_7450|iu3_7450)")
index 89de8df7b56038635ce79056684caa3c3a0f8e84..aba4a770ec33db25f3534a06a7d38ab68db96712 100644 (file)
@@ -62,7 +62,7 @@
 
 (define_insn_reservation "ppc750-integer" 1
   (and (ior (eq_attr "type" "integer,insert,trap,cntlz,exts,isel")
-           (and (eq_attr "type" "add,shift")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "no")))
        (eq_attr "cpu" "ppc750,ppc7400"))
   "ppc750_du,iu1_7xx|iu2_7xx")
   "ppc750_du,iu1_7xx*19")
 
 (define_insn_reservation "ppc750-compare" 2
-  (and (ior (eq_attr "type" "cmp,fast_compare,compare")
-           (and (eq_attr "type" "add,shift")
+  (and (ior (eq_attr "type" "cmp,compare")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "yes")))
        (eq_attr "cpu" "ppc750,ppc7400"))
   "ppc750_du,(iu1_7xx|iu2_7xx)")
index 22a67d0c9763526139f871f8f0fda4e9c53924b3..90a3d27d4d945fdac3e05e5feb7ea90a8c124d03 100644 (file)
@@ -84,7 +84,7 @@
 
 ;; Simple SU insns
 (define_insn_reservation "ppc8540_su" 1
-  (and (eq_attr "type" "integer,add,insert,cmp,compare,fast_compare,\
+  (and (eq_attr "type" "integer,add,logical,insert,cmp,compare,\
                         shift,trap,cntlz,exts,isel")
        (eq_attr "cpu" "ppc8540,ppc8548"))
   "ppc8540_decode,ppc8540_issue+ppc8540_su_stage0+ppc8540_retire")
index 70af72be4e7f7e20fbc5140d96d44b0bbf9feafa..b37cdba00553962d4fb49875d3ea4ad33dba4a0b 100644 (file)
 ;; Integer latency is 2 cycles
 (define_insn_reservation "cell-integer" 2
   (and (ior (eq_attr "type" "integer,trap,cntlz,exts,isel")
-           (and (eq_attr "type" "add,shift")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "no"))
            (and (eq_attr "type" "insert")
                 (eq_attr "size" "64")))
 
 ;; add, addo, sub, subo, alter cr0, rldcli, rlwinm 
 (define_insn_reservation "cell-fast-cmp" 2
-  (and (ior (eq_attr "type" "fast_compare,compare")
-           (and (eq_attr "type" "add,shift")
+  (and (ior (eq_attr "type" "compare")
+           (and (eq_attr "type" "add,logical,shift")
                 (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" "fast_compare,compare")
-           (and (eq_attr "type" "add,shift")
+  (and (ior (eq_attr "type" "compare")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "yes")))
        (eq_attr "cpu" "cell")
        (eq_attr "cell_micro" "always"))
index ccc8cc3edf4f2b7568187b979b7db39aceaf1243..6ac585b7d2cb8bd118a997a3ffd5d29dddaa10ea 100644 (file)
@@ -83,8 +83,8 @@
 
 ;; 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" "add,shift")
+  (and (ior (eq_attr "type" "cmp,compare")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "yes")))
        (ior (eq_attr "cpu" "ppce300c2") (eq_attr "cpu" "ppce300c3")))
   "ppce300c3_decode,ppce300c3_issue+(ppce300c3_iu_stage0|ppce300c3_sru_stage0) \
@@ -93,7 +93,7 @@
 ;; Other one cycle IU insns
 (define_insn_reservation "ppce300c3_iu" 1
   (and (ior (eq_attr "type" "integer,insert,isel")
-           (and (eq_attr "type" "add")
+           (and (eq_attr "type" "add,logical")
                 (eq_attr "dot" "no")))
        (ior (eq_attr "cpu" "ppce300c2") (eq_attr "cpu" "ppce300c3")))
   "ppce300c3_decode,ppce300c3_issue+ppce300c3_iu_stage0+ppce300c3_retire")
index c4c84c6d130863fc6ad26ac8ebb58f62c13970ec..2af7eb4e37aa946b5930b1e6f2f32733cd59a8be 100644 (file)
@@ -70,7 +70,7 @@
 
 ;; Simple SU insns.
 (define_insn_reservation "e500mc_su" 1
-  (and (eq_attr "type" "integer,add,insert,cmp,compare,fast_compare,\
+  (and (eq_attr "type" "integer,add,logical,insert,cmp,compare,\
                         shift,trap,cntlz,exts,isel")
        (eq_attr "cpu" "ppce500mc"))
   "e500mc_decode,e500mc_issue+e500mc_su_stage0+e500mc_retire")
index 70ee18e181c0c56f9cf6ba4be325d328077e07ed..45823347ab9e6908dacd7aaf89da74f2e87ef5dc 100644 (file)
@@ -70,7 +70,7 @@
 ;; Simple SU insns.
 (define_insn_reservation "e500mc64_su" 1
   (and (ior (eq_attr "type" "integer,insert,cntlz,exts")
-           (and (eq_attr "type" "add")
+           (and (eq_attr "type" "add,logical")
                 (eq_attr "dot" "no"))
            (and (eq_attr "type" "shift")
                 (eq_attr "dot" "no")
@@ -79,8 +79,8 @@
   "e500mc64_decode,e500mc64_issue+e500mc64_su_stage0+e500mc64_retire")
 
 (define_insn_reservation "e500mc64_su2" 2
-  (and (ior (eq_attr "type" "cmp,compare,fast_compare,trap")
-           (and (eq_attr "type" "add")
+  (and (ior (eq_attr "type" "cmp,compare,trap")
+           (and (eq_attr "type" "add,logical")
                 (eq_attr "dot" "yes"))
            (and (eq_attr "type" "shift")
                 (eq_attr "dot" "yes")
index 6ca86d7bbcd4d462cdaa8e46ba8536954a4ef464..49a5c394eb1337157d92963995b8d35ba8bcbe7c 100644 (file)
@@ -57,7 +57,7 @@
 ;; SFX.
 (define_insn_reservation "e5500_sfx" 1
   (and (ior (eq_attr "type" "integer,insert,cntlz,exts")
-           (and (eq_attr "type" "add")
+           (and (eq_attr "type" "add,logical")
                 (eq_attr "dot" "no"))
            (and (eq_attr "type" "shift")
                 (eq_attr "var_shift" "no")))
@@ -65,8 +65,8 @@
   "e5500_decode,e5500_sfx")
 
 (define_insn_reservation "e5500_sfx2" 2
-  (and (ior (eq_attr "type" "cmp,compare,fast_compare,trap")
-           (and (eq_attr "type" "add")
+  (and (ior (eq_attr "type" "cmp,compare,trap")
+           (and (eq_attr "type" "add,logical")
                 (eq_attr "dot"  "yes")))
        (eq_attr "cpu" "ppce5500"))
   "e5500_decode,e5500_sfx")
index 15dfc9ca4c017428285f030f60a27fea98f45a0c..deec34b0aabc0bfcd625284754ab205e61814975 100644 (file)
@@ -60,7 +60,7 @@
 ;; SFX.
 (define_insn_reservation "e6500_sfx" 1
   (and (ior (eq_attr "type" "integer,insert,cntlz,exts")
-           (and (eq_attr "type" "add")
+           (and (eq_attr "type" "add,logical")
                 (eq_attr "dot"  "no"))
            (and (eq_attr "type" "shift")
                 (eq_attr "var_shift" "no")))
@@ -68,8 +68,8 @@
   "e6500_decode,e6500_sfx")
 
 (define_insn_reservation "e6500_sfx2" 2
-  (and (ior (eq_attr "type" "cmp,compare,fast_compare,trap")
-           (and (eq_attr "type" "add")
+  (and (ior (eq_attr "type" "cmp,compare,trap")
+           (and (eq_attr "type" "add,logical")
                 (eq_attr "dot"  "yes")))
        (eq_attr "cpu" "ppce6500"))
   "e6500_decode,e6500_sfx")
index ffcb7a7bae8cda29bb85d43111fc0ac020cc9734..2f11a8614991359d458b30c8b24d8e1079d4b062 100644 (file)
@@ -42,7 +42,7 @@
 
 (define_insn_reservation "mpccore-integer" 1
   (and (ior (eq_attr "type" "integer,insert,trap,cntlz,exts,isel")
-           (and (eq_attr "type" "add,shift")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "no")))
        (eq_attr "cpu" "mpccore"))
   "iu_mpc")
@@ -69,8 +69,8 @@
   "mciu_mpc*6")
 
 (define_insn_reservation "mpccore-compare" 3
-  (and (ior (eq_attr "type" "cmp,fast_compare,compare")
-           (and (eq_attr "type" "add,shift")
+  (and (ior (eq_attr "type" "cmp,compare")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "yes")))
        (eq_attr "cpu" "mpccore"))
   "iu_mpc,nothing,bpu_mpc")
index cea473d4a46bd8cef293a70699a56fa577eca839..e46914e65215f911a3c950088236638a4143713d 100644 (file)
 ; Integer latency is 2 cycles
 (define_insn_reservation "power4-integer" 2
   (and (ior (eq_attr "type" "integer,trap,cntlz,exts,isel")
-           (and (eq_attr "type" "add,shift")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "no"))
            (and (eq_attr "type" "insert")
                 (eq_attr "size" "64")))
     |(iu2_power4,nothing,iu1_power4))")
 
 (define_insn_reservation "power4-cmp" 3
-  (and (ior (eq_attr "type" "cmp,fast_compare")
-           (and (eq_attr "type" "add")
+  (and (ior (eq_attr "type" "cmp")
+           (and (eq_attr "type" "add,logical")
                 (eq_attr "dot" "yes")))
        (eq_attr "cpu" "power4"))
   "iq_power4")
index 5df009e45207deb5bda892788e10608cbb15c277..198db827f8c8a7a8460c3a5da88dcf2e7553f9ef 100644 (file)
 ; Integer latency is 2 cycles
 (define_insn_reservation "power5-integer" 2
   (and (ior (eq_attr "type" "integer,trap,cntlz,exts,isel,popcnt")
-           (and (eq_attr "type" "add,shift")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "no"))
            (and (eq_attr "type" "insert")
                 (eq_attr "size" "64")))
   "du1_power5+du2_power5,iu1_power5,nothing,iu2_power5")
 
 (define_insn_reservation "power5-cmp" 3
-  (and (ior (eq_attr "type" "cmp,fast_compare")
-           (and (eq_attr "type" "add")
+  (and (ior (eq_attr "type" "cmp")
+           (and (eq_attr "type" "add,logical")
                 (eq_attr "dot" "yes")))
        (eq_attr "cpu" "power5"))
   "iq_power5")
index 9dfd39d92d7afc4741c2a9d50dc8369421c14984..e4a82a21c64857aff247f683f64031ce1e58f8e6 100644 (file)
 
 (define_insn_reservation "power6-integer" 1
   (and (ior (eq_attr "type" "integer")
-           (and (eq_attr "type" "add")
+           (and (eq_attr "type" "add,logical")
                 (eq_attr "dot" "no")))
        (eq_attr "cpu" "power6"))
   "FXU_power6")
   "FXU_power6")
 
 (define_insn_reservation "power6-fast-compare" 1
-  (and (ior (eq_attr "type" "fast_compare")
-           (and (eq_attr "type" "add")
-                (eq_attr "dot" "yes")))
+  (and (eq_attr "type" "add,logical")
+       (eq_attr "dot" "yes")
        (eq_attr "cpu" "power6"))
   "FXU_power6")
 
index 00aa26b6be6f6593d810d1cca7efc6024de7d082..b2a0cafe99c6f38fac40aaacbac482e521397a12 100644 (file)
 ; FX Unit
 (define_insn_reservation "power7-integer" 1
   (and (ior (eq_attr "type" "integer,insert,trap,exts,isel,popcnt")
-           (and (eq_attr "type" "add,shift")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "no")))
        (eq_attr "cpu" "power7"))
   "DU_power7,FXU_power7")
   "DU_power7+DU_power7+DU_power7,FXU_power7,FXU_power7,FXU_power7")
 
 (define_insn_reservation "power7-cmp" 1
-  (and (ior (eq_attr "type" "cmp,fast_compare")
-           (and (eq_attr "type" "add")
+  (and (ior (eq_attr "type" "cmp")
+           (and (eq_attr "type" "add,logical")
                 (eq_attr "dot" "yes")))
        (eq_attr "cpu" "power7"))
   "DU_power7,FXU_power7")
index b2eeac4935ce8c8df0e53a80151d26a8d5bfc6df..c7c0aa982cf4376adb4550dd28fa659816c9e71e 100644 (file)
 ; FX Unit
 (define_insn_reservation "power8-1cyc" 1
   (and (ior (eq_attr "type" "integer,insert,trap,exts,isel")
-           (and (eq_attr "type" "add,shift")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "no")))
        (eq_attr "cpu" "power8"))
   "DU_any_power8,FXU_power8")
        (eq_attr "cpu" "power8"))
   "DU_any_power8,FXU_power8")
 
-; fast_compare : add./and./nor./etc
+; add/logical with dot : add./and./nor./etc
 (define_insn_reservation "power8-fast-compare" 2
-  (and (ior (eq_attr "type" "fast_compare")
-           (and (eq_attr "type" "add")
-                (eq_attr "dot" "yes")))
+  (and (eq_attr "type" "add,logical")
+       (eq_attr "dot" "yes")
        (eq_attr "cpu" "power8"))
   "DU_any_power8,FXU_power8")
 
index 85a0048fa5ea16c8fc4651f6d37da7cc9190dfb7..36e5e990d320a6b474d062aa1fdb0fa88aaba711 100644 (file)
@@ -26242,8 +26242,8 @@ rs6000_adjust_cost (rtx insn, rtx link, rtx dep_insn, int cost)
                    }
                   case TYPE_INTEGER:
                   case TYPE_ADD:
+                  case TYPE_LOGICAL:
                   case TYPE_COMPARE:
-                  case TYPE_FAST_COMPARE:
                   case TYPE_EXTS:
                   case TYPE_INSERT:
                     {
@@ -26306,8 +26306,8 @@ rs6000_adjust_cost (rtx insn, rtx link, rtx dep_insn, int cost)
                    }
                   case TYPE_INTEGER:
                   case TYPE_ADD:
+                  case TYPE_LOGICAL:
                   case TYPE_COMPARE:
-                  case TYPE_FAST_COMPARE:
                   case TYPE_EXTS:
                   case TYPE_INSERT:
                     {
index 3b5eb7b8827666487ecdfb400c77901f6d59c469..36553bbbf82f9f15bd7e3a571d00a8df262e1aaa 100644 (file)
 ;; computations.
 (define_attr "type"
   "integer,two,three,
-   add,shift,insert,
+   add,logical,shift,insert,
    mul,halfmul,div,
    exts,cntlz,popcnt,isel,
    load,store,fpload,fpstore,vecload,vecstore,
    cmp,
    branch,jmpreg,mfjmpr,mtjmpr,trap,isync,sync,load_l,store_c,
-   compare,fast_compare,
+   compare,
    cr_logical,delayed_cr,mfcr,mfcrf,mtcr,
    fpcompare,fp,fpsimple,dmul,sdiv,ddiv,ssqrt,dsqrt,
    brinc,
 (define_attr "size" "8,16,32,64" (const_string "32"))
 
 ;; Is this instruction record form ("dot", signed compare to 0, writing CR0)?
-;; This is used for mul.
+;; This is used for add, logical, shift, mul.
 (define_attr "dot" "no,yes" (const_string "no"))
 
 ;; Does this instruction sign-extend its result?
   "@
    andi. %2,%1,0xff
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
   "@
    andi. %0,%1,0xff
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
   "@
    andi. %2,%1,0xff
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
   "@
    andi. %0,%1,0xff
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
   "@
    andi. %2,%1,0xffff
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
   "@
    andi. %0,%1,0xffff
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
   "@
    nor. %2,%1,%1
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
   "@
    nor. %0,%1,%1
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
    rlwinm %0,%1,0,%m2,%M2
    andi. %0,%1,%b2
    andis. %0,%1,%u2"
-  [(set_attr "type" "*,*,fast_compare,fast_compare")])
+  [(set_attr "type" "*,*,logical,logical")
+   (set_attr "dot" "no,no,yes,yes")])
 
 (define_insn "andsi3_nomc"
   [(set (match_operand:SI 0 "gpc_reg_operand" "=r,r")
    #
    #
    #"
-  [(set_attr "type" "fast_compare,fast_compare,fast_compare,shift,\
+  [(set_attr "type" "logical,logical,logical,shift,\
                     compare,compare,compare,compare")
    (set_attr "dot" "yes")
    (set_attr "length" "4,4,4,4,8,8,8,8")])
    #
    #
    #"
-  [(set_attr "type" "compare,fast_compare,fast_compare,shift,compare,\
+  [(set_attr "type" "compare,logical,logical,shift,compare,\
                     compare,compare,compare")
    (set_attr "dot" "yes")
    (set_attr "length" "8,4,4,4,8,8,8,8")])
    #
    #
    #"
-  [(set_attr "type" "fast_compare,fast_compare,fast_compare,shift,\
+  [(set_attr "type" "logical,logical,logical,shift,\
                     compare,compare,compare,compare")
    (set_attr "dot" "yes")
    (set_attr "length" "4,4,4,4,8,8,8,8")])
    #
    #
    #"
-  [(set_attr "type" "compare,fast_compare,fast_compare,shift,compare,\
+  [(set_attr "type" "compare,logical,logical,shift,compare,\
                     compare,compare,compare")
    (set_attr "dot" "yes")
    (set_attr "length" "8,4,4,4,8,8,8,8")])
   "@
    %q4. %3,%1,%2
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
   "@
    %q4. %0,%1,%2
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
   "@
    %q4. %3,%1,%2
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
   "@
    %q4. %0,%1,%2
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
    #
    #
    #"
-  [(set_attr "type" "fast_compare,shift,shift,shift,shift,shift")
+  [(set_attr "type" "logical,shift,shift,shift,shift,shift")
    (set_attr "var_shift" "no,yes,no,no,yes,no")
    (set_attr "dot" "yes")
    (set_attr "length" "4,4,4,8,8,8")])
    #
    #
    #"
-  [(set_attr "type" "fast_compare,shift,shift,shift,shift,shift")
+  [(set_attr "type" "logical,shift,shift,shift,shift,shift")
    (set_attr "var_shift" "no,yes,no,no,yes,no")
    (set_attr "dot" "yes")
    (set_attr "length" "4,4,4,8,8,8")])
    andi. %0,%1,%b2
    andis. %0,%1,%u2
    #"
-  [(set_attr "type" "*,*,*,fast_compare,fast_compare,*")
+  [(set_attr "type" "*,*,*,logical,logical,*")
+   (set_attr "dot" "no,no,no,yes,yes,no")
    (set_attr "length" "4,4,4,4,4,8")])
 
 (define_insn "anddi3_nomc"
    #
    #
    #"
-  [(set_attr "type" "fast_compare,compare,shift,fast_compare,\
-                    fast_compare,compare,compare,compare,compare,compare,\
+  [(set_attr "type" "logical,compare,shift,logical,\
+                    logical,compare,compare,compare,compare,compare,\
                     compare,compare")
    (set_attr "dot" "yes")
    (set_attr "length" "4,4,4,4,4,8,8,8,8,8,8,12")])
    #
    #
    #"
-  [(set_attr "type" "fast_compare,compare,shift,fast_compare,\
-                    fast_compare,compare,compare,compare,compare,compare,\
+  [(set_attr "type" "logical,compare,shift,logical,\
+                    logical,compare,compare,compare,compare,compare,\
                     compare,compare")
    (set_attr "dot" "yes")
    (set_attr "length" "4,4,4,4,4,8,8,8,8,8,8,12")])
   "@
    %q4. %3,%1,%2
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
   "@
    %q4. %0,%1,%2
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
   "@
    %q4. %3,%2,%1
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
   "@
    %q4. %0,%2,%1
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
   "@
    %q4. %3,%1,%2
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
   "@
    %q4. %0,%1,%2
    #"
-  [(set_attr "type" "fast_compare,compare")
+  [(set_attr "type" "logical,compare")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,8")])
 
 (define_split
    cmp<wd>i %2,%0,0
    mr. %0,%1
    #"
-  [(set_attr "type" "cmp,fast_compare,cmp")
+  [(set_attr "type" "cmp,logical,cmp")
+   (set_attr "dot" "yes")
    (set_attr "length" "4,4,8")])
 
 (define_split
index 2c324151cf29b19e8d5dfe42c69403b6e73b9c52..c891ac4b27f599e823a250e57c86b8f4cc91caa5 100644 (file)
@@ -47,7 +47,7 @@
 
 (define_insn_reservation "rs64a-integer" 1
   (and (ior (eq_attr "type" "integer,insert,trap,cntlz,exts,isel")
-           (and (eq_attr "type" "add,shift")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "no")))
        (eq_attr "cpu" "rs64a"))
   "iu_rs64")
@@ -99,8 +99,8 @@
   "mciu_rs64*66")
 
 (define_insn_reservation "rs64a-compare" 3
-  (and (ior (eq_attr "type" "cmp,fast_compare,compare")
-           (and (eq_attr "type" "add,shift")
+  (and (ior (eq_attr "type" "cmp,compare")
+           (and (eq_attr "type" "add,logical,shift")
                 (eq_attr "dot" "yes")))
        (eq_attr "cpu" "rs64a"))
   "iu_rs64,nothing,bpu_rs64")
index cb284ff564475ac4662a276aa30e031ec12f2942..4326cb90fdc21ee1dfb3a65c4e26dfddf5f673ca 100644 (file)
@@ -34,8 +34,8 @@
 ;; instructions. It provides its own, dedicated result-bus, so we
 ;; don't need the titan_fxu_wb reservation to complete.
 (define_insn_reservation "titan_fxu_adder" 1
-  (and (ior (eq_attr "type" "cmp,fast_compare,trap")
-           (and (eq_attr "type" "add")
+  (and (ior (eq_attr "type" "cmp,trap")
+           (and (eq_attr "type" "add,logical")
                 (eq_attr "dot" "yes")))
        (eq_attr "cpu" "titan"))
   "titan_issue,titan_fxu_sh")
@@ -75,7 +75,7 @@
 
 (define_insn_reservation "titan_fxu_alu" 1
   (and (ior (eq_attr "type" "integer,exts")
-           (and (eq_attr "type" "add")
+           (and (eq_attr "type" "add,logical")
                 (eq_attr "dot" "no")))
        (eq_attr "cpu" "titan"))
   "titan_issue,titan_fxu_sh,nothing,titan_fxu_wb")