gcc/gcc/testsuite/gcc.target/s390
Andreas Krebbel 3c8aa2bdcb S/390: Fix PR81534
The HI/QI atomic_fetch_<atomic><mode>" expander accepted symbolic
references and emitted CAS patterns whose insn predicates rejected them.

Fixed by allowing symbolic references there as well.  Reload will get
rid of them due to the constraint letter.

Regression tested on s390x.

gcc/ChangeLog:

2017-07-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

	Backport from mainline
	2017-07-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

	PR target/81534
	* config/s390/s390.md ("*atomic_compare_and_swap<mode>_1")
	("*atomic_compare_and_swapdi_2", "*atomic_compare_and_swapsi_3"):
	Change s_operand to memory_operand.

gcc/testsuite/ChangeLog:

2017-07-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

	Backport from mainline
	2017-07-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

	PR target/81534
	* gcc.target/s390/pr81534.c: New test.

From-SVN: r250618
2017-07-27 10:42:22 +00:00
..
arch12 S/390: arch12: Support the mul/add/subtract 2017-03-24 14:02:51 +00:00
md S/390: PR80080: Optimize atomic patterns. 2017-04-25 11:11:48 +00:00
target-attribute S/390: arch12: New builtins. 2017-03-24 14:04:12 +00:00
vector Fix s390 testcase vcond-shift 2017-04-03 10:54:38 +00:00
vxe S/390: arch12: Support new vector floating point modes. 2017-03-24 14:03:24 +00:00
zvector S/390: PR79893: Add diagnostics vec_load_bndry builtin. 2017-03-24 13:51:32 +00:00
20020926-1.c
20030123-1.c
20030129-1.c
20040305-1.c
20041109-1.c
20041216-1.c
20050409-1.c
20050524-1.c
20050824-1.c
20071212-1.c
20090223-1.c
20140327-1.c
20150826-1.c S/390: Add emit_barrier() after trap 2015-08-27 07:38:36 +00:00
addr-constraints-1.c
asm-machine-1.c [PATCH 2/2] S/390: Implement "target" attribute. 2015-12-04 14:33:01 +00:00
asm-machine-2.c [PATCH 2/2] S/390: Implement "target" attribute. 2015-12-04 14:33:01 +00:00
asm-machine-3.c [PATCH 2/2] S/390: Implement "target" attribute. 2015-12-04 14:33:01 +00:00
asm-machine-4.c [PATCH 2/2] S/390: Implement "target" attribute. 2015-12-04 14:33:01 +00:00
bswap-1.c S/390: Further bswap enhancements. 2015-12-02 07:49:47 +00:00
bswaphi-1.c S/390: Further bswap enhancements. 2015-12-02 07:49:47 +00:00
dfp-1.c S/390: Fix rounding for _Decimal128 to _Decimal32 conversion 2016-03-11 07:47:47 +00:00
dfp-conv1.c
dwarfregtable-1.c S/390: Fix dwarf reg size table for -m31 -mzarch. 2015-08-06 10:23:38 +00:00
dwarfregtable-2.c S/390: Fix dwarf reg size table for -m31 -mzarch. 2015-08-06 10:23:38 +00:00
dwarfregtable-3.c S/390: Fix dwarf reg size table for -m31 -mzarch. 2015-08-06 10:23:38 +00:00
fp2int1.c
frame-addr1.c
frame-addr2.c
gpr2fprsavecfi.c S/390: Fix cfi for GPR 2 FPR saves 2015-07-24 11:29:50 +00:00
hotpatch-1.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-2.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-3.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-4.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-5.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-6.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-7.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-8.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-9.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-10.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-11.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-12.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-13.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-14.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-15.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-16.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-17.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-18.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-19.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-20.c
hotpatch-21.c
hotpatch-22.c
hotpatch-23.c
hotpatch-24.c
hotpatch-25.c
hotpatch-26.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-27.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-28.c S/390: Change 2-byte NOPs 2017-03-06 12:40:19 +00:00
hotpatch-compile-1.c S/390: Fix hotpatch test cases. 2016-09-23 19:37:06 +00:00
hotpatch-compile-2.c S/390: Fix hotpatch test cases. 2016-09-23 19:37:06 +00:00
hotpatch-compile-3.c S/390: Fix hotpatch test cases. 2016-09-23 19:37:06 +00:00
hotpatch-compile-4.c S/390: Fix hotpatch test cases. 2016-09-23 19:37:06 +00:00
hotpatch-compile-5.c S/390: Fix hotpatch test cases. 2016-09-23 19:37:06 +00:00
hotpatch-compile-6.c S/390: Fix hotpatch test cases. 2016-09-23 19:37:06 +00:00
hotpatch-compile-7.c
hotpatch-compile-8.c
hotpatch-compile-9.c
hotpatch-compile-10.c
hotpatch-compile-11.c
hotpatch-compile-12.c
hotpatch-compile-13.c
hotpatch-compile-14.c S/390: Fix hotpatch test cases. 2016-09-23 19:37:06 +00:00
hotpatch-compile-15.c
hotpatch-compile-16.c
htm-builtins-1.c S/390: Lower requirements for successful htm tests. 2016-11-18 14:50:27 +00:00
htm-builtins-2.c S/390: Lower requirements for successful htm tests. 2016-11-18 14:50:27 +00:00
htm-builtins-compile-1.c
htm-builtins-compile-2.c S/390: Downcase first letter of error messages. 2017-01-18 15:03:18 +00:00
htm-builtins-compile-3.c
htm-builtins-z13-1.c S/390: Move and rename vector check. 2017-03-24 13:57:58 +00:00
htm-nofloat-1.c
htm-nofloat-compile-1.c
insv-1.c S/390: Fix insv-1.c test with -m31. 2016-08-23 09:13:31 +00:00
insv-2.c S/390: Xfail some tests in insv-[12].c. 2016-07-20 17:09:03 +00:00
insv-3.c [PATCH] S/390: Improve risbg usage 2015-07-24 11:28:06 +00:00
leaf-profile.c
litpool-r3-1.c S/390: Fix litpool-r3-1.c. 2016-12-02 08:31:09 +00:00
litpool-str-1.c varasm: Propagate litpool decl alignment to generated RTX. 2016-12-22 14:50:29 +00:00
load-and-test-fp-1.c S/390: PR78857: Don't use load and test if result is live. 2017-03-20 09:33:11 +00:00
load-and-test-fp-2.c S/390: PR78857: Don't use load and test if result is live. 2017-03-20 09:33:11 +00:00
load-relative-check.c S/390: Testsuite: Add asm scan patterns for -m31. 2015-11-30 13:24:51 +00:00
loc-1.c S/390: Add support for z13 instructions lochi and locghi. 2016-07-04 14:25:22 +00:00
memcpy-1.c S/390: Unroll mvc loop for memcpy with small constant lengths. 2017-01-05 10:03:01 +00:00
memcpy-2.c S/390: Additional memset/memcpy runtime tests. 2017-01-05 10:05:47 +00:00
memset-1.c S/390: Unroll mvc/xc loop for memset with small constant 2017-01-05 10:00:34 +00:00
memset-2.c S/390: Additional memset/memcpy runtime tests. 2017-01-05 10:05:47 +00:00
morestack.c S/390: Add __morestack test. 2016-02-19 10:20:23 +00:00
nearestint-1.c
nolrl-1.c s390.c (s390_asm_file_start): Call default_file_start. 2016-08-23 20:43:17 +00:00
oscbreak-1.c S/390: Add static OSC breaker if necessary. 2016-10-28 12:31:37 +00:00
pfpo.c S/390: Clobber r1 in patterns resulting in pfpo instruction. 2015-11-20 07:36:07 +00:00
pr20927.c
pr24624.c
pr27661.c
pr36822.c
pr42224.c
pr55718.c
pr57559.c
pr57960.c
pr61078.c
pr66306.c
pr67443.c S/390: Fix pr67443.c. 2016-07-20 17:11:37 +00:00
pr68015.c S/390: PR68015 Fix ICE in s390_emit_compare 2015-10-22 08:24:01 +00:00
pr69148.c re PR target/69148 (ICE (floating point exception) on s390x-linux-gnu) 2016-02-10 18:01:40 +00:00
pr69625.c S/390: PR 69625: Add test case 2016-02-19 10:15:43 +00:00
pr69709.c S/390: PR69709 Fix risbg splitter 2016-02-26 18:03:51 +00:00
pr70478.c re PR rtl-optimization/70478 ([LRA] S/390: Performance regression - superfluous stack frame) 2017-04-07 16:01:50 +00:00
pr70674.c PR70674: S/390: Add memory barrier to stack pointer restore from fpr. 2016-04-20 07:13:23 +00:00
pr77822-1.C PR target/77822: S390: Validate argument range of {zero,sign}_extract. 2016-12-02 08:30:16 +00:00
pr77822-2.c PR target/77822: S390: Validate argument range of {zero,sign}_extract. 2016-12-02 08:30:16 +00:00
pr79240.c S/390: PR target/79240: Fix assertion in s390_extzv_shift_ok. 2017-01-30 09:54:58 +00:00
pr79890.c PR target/79890: S/390: Fix crash. 2017-04-05 08:28:18 +00:00
pr79895.c S/390: PR79895: Fix TImode constant handling 2017-04-25 11:15:44 +00:00
pr80725.c S/390: Fix PR80725. 2017-05-29 07:54:13 +00:00
pr81534.c S/390: Fix PR81534 2017-07-27 10:42:22 +00:00
return-addr1.c
return-addr2.c
risbg-ll-1.c S/390: Improved risbg usage. 2016-09-23 09:53:29 +00:00
risbg-ll-2.c S/390: Improved risbg usage. 2016-09-23 09:53:29 +00:00
risbg-ll-3.c S/390: Improved risbg usage. 2016-09-23 09:53:29 +00:00
s390.exp S/390: arch12: Add arch12 option. 2017-03-24 13:59:51 +00:00
stackcheck1.c
tf_to_di-1.c
warn-dynamicstack-1.c Allocate constant size dynamic stack space in the prologue 2016-07-18 13:10:27 +00:00