aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/rs6000.md
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2005-07-15 01:44:38 +0000
committerDavid Edelsohn <edelsohn@gnu.org>2005-07-15 01:44:38 +0000
commit8a08b5266fc994f9b6bd0ff3271dd7efe36c9997 (patch)
tree6969dec875be0917a1ffade468412f0a5d77b33b /gcc/config/rs6000/rs6000.md
parent3d9ee69dc51b92a2160160fa232bd3044fffe906 (diff)
* config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG, UNSPEC_XCHG, UNSPEC_AND): New. (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete. * config/rs6000/sync.md (FETCHOP): New code macro. (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr): New code attrs. (memory_barrier, sync_internal): Use unspec instead of unspec_volatile. (sync_compare_and_swap<mode>): Same. (sync_lock_test_and_set<mode>): Same. (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync for QImode and HImode, and not PPC405. (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same. (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same. (sync_<fetchop>{si,di}_internal): New. (sync_nand{si,di}_internal): New. (sync_old_<fetchop>{si,di}_internal): New. (sync_old_nand{si,di}_internal): New (sync_new_<fetchop>{si,di}_internal): New. (sync_new_nand{si,di}_internal): New. (atomic_and{si,di}): New. (sync_new_nand{si,di}_internal): New. (atomic_and{si,di}): New. (sync_add<mode>_internal): Delete. (sync_addshort_internal): Use unspec instead of unspec_volatile. (sync_sub<mode>_internal): Delte. (sync_subshort_internal): New. (sync_andsi_internal): Use unspec instead of unspec_volatile. (sync_anddi_internal): Delete. (sync_boolsi_internal): Use unspec instead of unspec_volatile. (sync_booldi_internal): Delete. (sync_boolc<mode>_internal): Delete. (sync_boolcshort_internal): Use unspec instead of unspec_volatile. (sync_boolc<mode>_internal2): Delete. (sync_boolcc<mode>_internal): Delete. (isync, lwsync): Use unspec instead of unspec_volatile. * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS. Revert UNSPEC_VOLATILE. (rs6000_split_atomic_op): New. * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@102049 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/rs6000.md')
-rw-r--r--gcc/config/rs6000/rs6000.md22
1 files changed, 12 insertions, 10 deletions
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 1381f7d7865..3cc613a82ed 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -52,10 +52,18 @@
(UNSPEC_FIX_TRUNC_TF 30) ; fadd, rounding towards zero
(UNSPEC_MV_CR_GT 31) ; move_from_CR_eq_bit
(UNSPEC_STFIWX 32)
- (UNSPEC_POPCNTB 38)
- (UNSPEC_FRES 39)
- (UNSPEC_SP_SET 40)
- (UNSPEC_SP_TEST 41)
+ (UNSPEC_POPCNTB 33)
+ (UNSPEC_FRES 34)
+ (UNSPEC_SP_SET 35)
+ (UNSPEC_SP_TEST 36)
+ (UNSPEC_SYNC 37)
+ (UNSPEC_LWSYNC 38)
+ (UNSPEC_ISYNC 39)
+ (UNSPEC_SYNC_OP 40)
+ (UNSPEC_ATOMIC 41)
+ (UNSPEC_CMPXCHG 42)
+ (UNSPEC_XCHG 43)
+ (UNSPEC_AND 44)
])
;;
@@ -66,12 +74,6 @@
[(UNSPECV_BLOCK 0)
(UNSPECV_LL 1) ; load-locked
(UNSPECV_SC 2) ; store-conditional
- (UNSPECV_ATOMIC 3)
- (UNSPECV_SYNC 4)
- (UNSPECV_SYNC_OP 5)
- (UNSPECV_CMPXCHG 6)
- (UNSPECV_LWSYNC 7)
- (UNSPECV_ISYNC 8)
(UNSPECV_EH_RR 9) ; eh_reg_restore
])