diff mbox

[ARM,testsuite] Add 'dg-require-effective-target sync_*' to some atomic tests

Message ID 51B8A5C8.7020304@codesourcery.com
State New
Headers show

Commit Message

Meador Inge June 12, 2013, 4:46 p.m. UTC
Hi All,

This patch adds the needed 'dg-require-effective-target sync_*' lines to some
of the atomic tests so that they will not be run if the appropriate atomic
support is not available.

OK for trunk?

2013-06-12  Meador Inge  <meadori@codesourcery.com>

	* gcc.dg/atomic-flag.c: Add dg-require-effective-target sync_*.
	* g++.dg/simulate-thread/atomics-2.C: Likewise.
	* g++.dg/simulate-thread/atomics-1.C: Likewise.

Comments

Meador Inge June 26, 2013, 7:01 p.m. UTC | #1
Ping.

On 06/12/2013 11:46 AM, Meador Inge wrote:
> Hi All,
> 
> This patch adds the needed 'dg-require-effective-target sync_*' lines to some
> of the atomic tests so that they will not be run if the appropriate atomic
> support is not available.
> 
> OK for trunk?
> 
> 2013-06-12  Meador Inge  <meadori@codesourcery.com>
> 
> 	* gcc.dg/atomic-flag.c: Add dg-require-effective-target sync_*.
> 	* g++.dg/simulate-thread/atomics-2.C: Likewise.
> 	* g++.dg/simulate-thread/atomics-1.C: Likewise.
>
Mike Stump June 27, 2013, 7:14 p.m. UTC | #2
On Jun 12, 2013, at 9:46 AM, Meador Inge <meadori@codesourcery.com> wrote:
> This patch adds the needed 'dg-require-effective-target sync_*' lines to some
> of the atomic tests so that they will not be run if the appropriate atomic
> support is not available.
> 
> OK for trunk?

Ok.

> 2013-06-12  Meador Inge  <meadori@codesourcery.com>
> 
> 	* gcc.dg/atomic-flag.c: Add dg-require-effective-target sync_*.
> 	* g++.dg/simulate-thread/atomics-2.C: Likewise.
> 	* g++.dg/simulate-thread/atomics-1.C: Likewise.
> 
> <gcc-atomic-tests.patch>
diff mbox

Patch

Index: gcc/testsuite/gcc.dg/atomic-flag.c
===================================================================
--- gcc/testsuite/gcc.dg/atomic-flag.c	(revision 199961)
+++ gcc/testsuite/gcc.dg/atomic-flag.c	(working copy)
@@ -1,5 +1,6 @@ 
 /* Test __atomic routines for existence and execution.  */
 /* { dg-do run } */
+/* { dg-require-effective-target sync_char_short } */
 
 /* Test that __atomic_test_and_set and __atomic_clear builtins execute.  */
 
Index: gcc/testsuite/g++.dg/simulate-thread/atomics-2.C
===================================================================
--- gcc/testsuite/g++.dg/simulate-thread/atomics-2.C	(revision 199961)
+++ gcc/testsuite/g++.dg/simulate-thread/atomics-2.C	(working copy)
@@ -1,6 +1,7 @@ 
 /* { dg-do link } */
 /* { dg-options "-std=c++0x" } */
 /* { dg-final { simulate-thread } } */
+/* { dg-require-effective-target sync_int_long } */
 
 using namespace std;
 
Index: gcc/testsuite/g++.dg/simulate-thread/atomics-1.C
===================================================================
--- gcc/testsuite/g++.dg/simulate-thread/atomics-1.C	(revision 199961)
+++ gcc/testsuite/g++.dg/simulate-thread/atomics-1.C	(working copy)
@@ -1,6 +1,8 @@ 
 /* { dg-do link } */
 /* { dg-options "-std=c++0x" } */
 /* { dg-final { simulate-thread } } */
+/* { dg-require-effective-target sync_char_short } */
+/* { dg-require-effective-target sync_int_long } */
 
 /* Test that atomic int and atomic char work properly.  */