spu-protos.h (spu_expand_atomic_op): Add prototype.
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 30 Sep 2015 14:58:49 +0000 (14:58 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Wed, 30 Sep 2015 14:58:49 +0000 (14:58 +0000)
commit99400eed8df62083577063d7e0eea248013f6277
tree6a1cff82e7f979c35b646844cc28625a5f340e27
parent21b820644d11c7a320421c532ed96cf3454ee16e
spu-protos.h (spu_expand_atomic_op): Add prototype.

gcc/
* config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
* config/spu/spu.c (spu_expand_atomic_op): New function.
* config/spu/spu.md (AINT): New mode iterator.
(ATOMIC): New code iterator.
(atomic_name, atomic_pred): New code predicates.
("atomic_load<mode>", "atomic_store<mode>"): New expanders.
("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
(""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
"atomic_<atomic_name>_fetch<mode>"): Likewise.

gcc/testsuite/
* lib/target-supports.exp (check_effective_target_sync_int_128):
Return 1 on spu-*-* targets.
(check_effective_target_sync_int_128_runtime): Likewise.
(check_effective_target_sync_long_long): Likewise.
(check_effective_target_sync_long_long_runtime): Likewise.
(check_effective_target_sync_int_long): Likewise.
(check_effective_target_sync_char_short): Likewise.

From-SVN: r228297
gcc/ChangeLog
gcc/config/spu/spu-protos.h
gcc/config/spu/spu.c
gcc/config/spu/spu.md
gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp