This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r248921 - in /trunk/gcc: ChangeLog config/aarch...


Author: ktkachov
Date: Tue Jun  6 13:26:46 2017
New Revision: 248921

URL: https://gcc.gnu.org/viewcvs?rev=248921&root=gcc&view=rev
Log:
[AArch64] Allow const0_rtx operand for atomic compare-exchange patterns

	* config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
	Use aarch64_reg_or_zero predicate for operand 4.
	(aarch64_compare_and_swap<mode> define_insn_and_split):
	Use aarch64_reg_or_zero predicate for operand 3.  Add 'Z' constraint.
	(aarch64_store_exclusive<mode>): Likewise for operand 2.

	* gcc.target/aarch64/atomic_cmp_exchange_zero_reg_1.c: New test.


Added:
    trunk/gcc/testsuite/gcc.target/aarch64/atomic_cmp_exchange_zero_reg_1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/aarch64/atomics.md
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]