From: Andreas Krebbel Date: Wed, 2 Dec 2015 07:45:50 +0000 (+0000) Subject: S/390: Enable 64 bit atomic tests with -m31 -mzarch. X-Git-Tag: upstream/12.2.0~50319 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a233c891443cf038d305c3cfe36e95506ae1c228;p=platform%2Fupstream%2Fgcc.git S/390: Enable 64 bit atomic tests with -m31 -mzarch. gcc/testsuite/ChangeLog: 2015-12-02 Andreas Krebbel * lib/target-supports.exp: Add s390 and s390x to the list of long long atomic targets. From-SVN: r231151 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4e62a06..e102766 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2015-12-02 Andreas Krebbel + * lib/target-supports.exp: Add s390 and s390x to the list of long + long atomic targets. + +2015-12-02 Andreas Krebbel + * gcc.dg/optimize-bswapdi-1.c: Force using -mzarch on s390 and s390x to enable 64 bit bswap patterns. * gcc.dg/optimize-bswapdi-2.c: Likewise. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index e3b30f1..4e349e9 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -5404,6 +5404,7 @@ proc check_effective_target_sync_int_128_runtime { } { # Return 1 if the target supports atomic operations on "long long". # # Note: 32bit x86 targets require -march=pentium in dg-options. +# Note: 32bit s390 targets require -mzarch in dg-options. proc check_effective_target_sync_long_long { } { if { [istarget x86_64-*-*] || [istarget i?86-*-*]) @@ -5411,6 +5412,7 @@ proc check_effective_target_sync_long_long { } { || [istarget arm*-*-*] || [istarget alpha*-*-*] || ([istarget sparc*-*-*] && [check_effective_target_lp64]) + || [istarget s390*-*-*] || [istarget spu-*-*] } { return 1 } else {