diff options
author | David Edelsohn <edelsohn@gnu.org> | 2005-07-07 14:30:14 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2005-07-07 10:30:14 -0400 |
commit | b52110d478b71ec2e1f099b3c1b539228a9bdaea (patch) | |
tree | 955cd40d8715a07dc2818bb9bbd6b997d6646a4f /gcc/config/rs6000/7xx.md | |
parent | 456f9beaadde15da4885551550399b8acc870e54 (diff) | |
download | gcc-b52110d478b71ec2e1f099b3c1b539228a9bdaea.zip gcc-b52110d478b71ec2e1f099b3c1b539228a9bdaea.tar.gz gcc-b52110d478b71ec2e1f099b3c1b539228a9bdaea.tar.bz2 |
rs6000.md (UNSPEC_SYNC, [...]): Delete.
* config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
(UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
(define_attr "type"): Add isync, sync, load_l, store_c.
* config/rs6000/sync.md (memory_barrier): Change to define_expand.
Create scratch volatile MEM.
(sync_internal): New. POWER mnemonic is dcs, not ics. Attribute
sync.
(load_locked_<mode>): New.
(store_conditional_<mode>): New.
(sync_compare_and_swap<mode>): Replace with splitter.
(sync_lock_test_and_set<mode>): Replace with splitter.
(sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
and UNSPECV_ISYNC.
(isync): Change to unspec_volatile UNSPECV_ISYNC. POWER mnemonic
is ics. Attribute isync.
(lwsync): Change to unspec_volatile UNSPECV_LWSYNC. Attribute
lwsync.
* config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
and UNSPECV_SYNC_OP.
(emit_unlikely_jump): New.
(emit_load_locked): New.
(emit_store_conditional): New.
(rs6000_split_compare_and_swap): New.
(rs6000_split_lock_test_and_set): New.
(is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
* config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
rs6000_split_lock_test_and_set): Declare.
* config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
store_c, isync, sync.
From-SVN: r101712
Diffstat (limited to 'gcc/config/rs6000/7xx.md')
-rw-r--r-- | gcc/config/rs6000/7xx.md | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/gcc/config/rs6000/7xx.md b/gcc/config/rs6000/7xx.md index 9308824..77e58a3 100644 --- a/gcc/config/rs6000/7xx.md +++ b/gcc/config/rs6000/7xx.md @@ -48,16 +48,22 @@ (define_insn_reservation "ppc750-load" 2 (and (eq_attr "type" "load,load_ext,load_ext_u,load_ext_ux,\ - load_ux,load_u,fpload,fpload_ux,fpload_u,vecload") + load_ux,load_u,fpload,fpload_ux,fpload_u,\ + vecload,load_l") (eq_attr "cpu" "ppc750,ppc7400")) "ppc750_du,lsu_7xx") -(define_insn_reservation "ppc750-store" 1 +(define_insn_reservation "ppc750-store" 2 (and (eq_attr "type" "store,store_ux,store_u,\ fpstore,fpstore_ux,fpstore_u,vecstore") (eq_attr "cpu" "ppc750,ppc7400")) "ppc750_du,lsu_7xx") +(define_insn_reservation "ppc750-storec" 8 + (and (eq_attr "type" "store_c") + (eq_attr "cpu" "ppc750,ppc7400")) + "ppc750_du,lsu_7xx") + (define_insn_reservation "ppc750-integer" 1 (and (eq_attr "type" "integer,insert_word") (eq_attr "cpu" "ppc750,ppc7400")) @@ -137,10 +143,10 @@ (define_insn_reservation "ppc750-crlogical" 3 (and (eq_attr "type" "cr_logical,delayed_cr") (eq_attr "cpu" "ppc750,ppc7400")) - "ppc750_du,sru_7xx*2") + "nothing,sru_7xx*2") (define_insn_reservation "ppc750-mtjmpr" 2 - (and (eq_attr "type" "mtjmpr") + (and (eq_attr "type" "mtjmpr,isync,sync") (eq_attr "cpu" "ppc750,ppc7400")) "nothing,sru_7xx*2") @@ -150,7 +156,7 @@ "nothing,sru_7xx*2") (define_insn_reservation "ppc750-jmpreg" 1 - (and (eq_attr "type" "jmpreg,branch") + (and (eq_attr "type" "jmpreg,branch,isync") (eq_attr "cpu" "ppc750,ppc7400")) "nothing,bpu_7xx") |