diff options
Diffstat (limited to 'gcc/config/rs6000/power7.md')
-rw-r--r-- | gcc/config/rs6000/power7.md | 69 |
1 files changed, 51 insertions, 18 deletions
diff --git a/gcc/config/rs6000/power7.md b/gcc/config/rs6000/power7.md index 3578c97ead4..0884974a938 100644 --- a/gcc/config/rs6000/power7.md +++ b/gcc/config/rs6000/power7.md @@ -1,5 +1,5 @@ ;; Scheduling description for IBM POWER7 processor. -;; Copyright (C) 2009-2014 Free Software Foundation, Inc. +;; Copyright (C) 2009-2015 Free Software Foundation, Inc. ;; ;; Contributed by Pat Haugen (pthaugen@us.ibm.com). @@ -58,66 +58,91 @@ ; LS Unit (define_insn_reservation "power7-load" 2 (and (eq_attr "type" "load") + (eq_attr "sign_extend" "no") + (eq_attr "update" "no") (eq_attr "cpu" "power7")) "DU_power7,LSU_power7") (define_insn_reservation "power7-load-ext" 3 - (and (eq_attr "type" "load_ext") + (and (eq_attr "type" "load") + (eq_attr "sign_extend" "yes") + (eq_attr "update" "no") (eq_attr "cpu" "power7")) "DU2F_power7,LSU_power7,FXU_power7") (define_insn_reservation "power7-load-update" 2 - (and (eq_attr "type" "load_u") + (and (eq_attr "type" "load") + (eq_attr "sign_extend" "no") + (eq_attr "update" "yes") + (eq_attr "indexed" "no") (eq_attr "cpu" "power7")) "DU2F_power7,LSU_power7+FXU_power7") (define_insn_reservation "power7-load-update-indexed" 3 - (and (eq_attr "type" "load_ux") + (and (eq_attr "type" "load") + (eq_attr "sign_extend" "no") + (eq_attr "update" "yes") + (eq_attr "indexed" "yes") (eq_attr "cpu" "power7")) "DU4_power7,FXU_power7,LSU_power7+FXU_power7") (define_insn_reservation "power7-load-ext-update" 4 - (and (eq_attr "type" "load_ext_u") + (and (eq_attr "type" "load") + (eq_attr "sign_extend" "yes") + (eq_attr "update" "yes") + (eq_attr "indexed" "no") (eq_attr "cpu" "power7")) "DU2F_power7,LSU_power7+FXU_power7,FXU_power7") (define_insn_reservation "power7-load-ext-update-indexed" 4 - (and (eq_attr "type" "load_ext_ux") + (and (eq_attr "type" "load") + (eq_attr "sign_extend" "yes") + (eq_attr "update" "yes") + (eq_attr "indexed" "yes") (eq_attr "cpu" "power7")) "DU4_power7,FXU_power7,LSU_power7+FXU_power7,FXU_power7") (define_insn_reservation "power7-fpload" 3 (and (eq_attr "type" "fpload") + (eq_attr "update" "no") (eq_attr "cpu" "power7")) "DU_power7,LSU_power7") (define_insn_reservation "power7-fpload-update" 3 - (and (eq_attr "type" "fpload_u,fpload_ux") + (and (eq_attr "type" "fpload") + (eq_attr "update" "yes") (eq_attr "cpu" "power7")) "DU2F_power7,LSU_power7+FXU_power7") (define_insn_reservation "power7-store" 6 ; store-forwarding latency (and (eq_attr "type" "store") + (eq_attr "update" "no") (eq_attr "cpu" "power7")) "DU_power7,LSU_power7+FXU_power7") (define_insn_reservation "power7-store-update" 6 - (and (eq_attr "type" "store_u") + (and (eq_attr "type" "store") + (eq_attr "update" "yes") + (eq_attr "indexed" "no") (eq_attr "cpu" "power7")) "DU2F_power7,LSU_power7+FXU_power7,FXU_power7") (define_insn_reservation "power7-store-update-indexed" 6 - (and (eq_attr "type" "store_ux") + (and (eq_attr "type" "store") + (eq_attr "update" "yes") + (eq_attr "indexed" "yes") (eq_attr "cpu" "power7")) "DU4_power7,LSU_power7+FXU_power7,FXU_power7") (define_insn_reservation "power7-fpstore" 6 (and (eq_attr "type" "fpstore") + (eq_attr "update" "no") (eq_attr "cpu" "power7")) "DU_power7,LSU_power7+VSU_power7") (define_insn_reservation "power7-fpstore-update" 6 - (and (eq_attr "type" "fpstore_u,fpstore_ux") + (and (eq_attr "type" "fpstore") + (eq_attr "update" "yes") (eq_attr "cpu" "power7")) "DU_power7,LSU_power7+VSU_power7+FXU_power7") @@ -149,8 +174,9 @@ ; FX Unit (define_insn_reservation "power7-integer" 1 - (and (eq_attr "type" "integer,insert_word,insert_dword,shift,trap,\ - var_shift_rotate,exts,isel,popcnt") + (and (ior (eq_attr "type" "integer,insert,trap,isel,popcnt") + (and (eq_attr "type" "add,logical,shift,exts") + (eq_attr "dot" "no"))) (eq_attr "cpu" "power7")) "DU_power7,FXU_power7") @@ -170,34 +196,41 @@ "DU_power7+DU_power7+DU_power7,FXU_power7,FXU_power7,FXU_power7") (define_insn_reservation "power7-cmp" 1 - (and (eq_attr "type" "cmp,fast_compare") + (and (ior (eq_attr "type" "cmp") + (and (eq_attr "type" "add,logical") + (eq_attr "dot" "yes"))) (eq_attr "cpu" "power7")) "DU_power7,FXU_power7") (define_insn_reservation "power7-compare" 2 - (and (eq_attr "type" "compare,delayed_compare,var_delayed_compare") + (and (eq_attr "type" "shift,exts") + (eq_attr "dot" "yes") (eq_attr "cpu" "power7")) "DU2F_power7,FXU_power7,FXU_power7") (define_bypass 3 "power7-cmp,power7-compare" "power7-crlogical,power7-delayedcr") (define_insn_reservation "power7-mul" 4 - (and (eq_attr "type" "imul,imul2,imul3,lmul") + (and (eq_attr "type" "mul") + (eq_attr "dot" "no") (eq_attr "cpu" "power7")) "DU_power7,FXU_power7") (define_insn_reservation "power7-mul-compare" 5 - (and (eq_attr "type" "imul_compare,lmul_compare") + (and (eq_attr "type" "mul") + (eq_attr "dot" "yes") (eq_attr "cpu" "power7")) "DU2F_power7,FXU_power7,nothing*3,FXU_power7") (define_insn_reservation "power7-idiv" 36 - (and (eq_attr "type" "idiv") + (and (eq_attr "type" "div") + (eq_attr "size" "32") (eq_attr "cpu" "power7")) "DU2F_power7,iu1_power7*36|iu2_power7*36") (define_insn_reservation "power7-ldiv" 68 - (and (eq_attr "type" "ldiv") + (and (eq_attr "type" "div") + (eq_attr "size" "64") (eq_attr "cpu" "power7")) "DU2F_power7,iu1_power7*68|iu2_power7*68") |