diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2006-05-22 19:10:45 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2006-05-22 19:10:45 +0000 |
commit | e962c46b2054ffa2c78b3f1f0829145dcefdb49f (patch) | |
tree | 9228875cf37dd3c849d2383f00becde570300633 /libgomp/testsuite | |
parent | 3d763bcffe7b76b4167159c9193263dbb47ededd (diff) | |
download | gcc-e962c46b2054ffa2c78b3f1f0829145dcefdb49f.zip gcc-e962c46b2054ffa2c78b3f1f0829145dcefdb49f.tar.gz gcc-e962c46b2054ffa2c78b3f1f0829145dcefdb49f.tar.bz2 |
re PR libgomp/27612 (Tests use __sync_lock_test_and_set_4')
PR libgomp/27612
* testsuite/libgomp.c/sections-1.c: Require sync_int_long.
* testsuite/libgomp.c/critical-1.c: Likewise.
* testsuite/libgomp.c/loop-1.c: Likewise.
* testsuite/libgomp.c/loop-2.c: Likewise.
* testsuite/libgomp.c/single-1.c: Likewise.
* testsuite/libgomp.c/ordered-1.c: Likewise.
* testsuite/libgomp.c/ordered-2.c: Likewise.
From-SVN: r113988
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r-- | libgomp/testsuite/libgomp.c/critical-1.c | 2 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/loop-1.c | 2 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/loop-2.c | 2 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/ordered-1.c | 2 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/ordered-2.c | 2 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/sections-1.c | 2 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/single-1.c | 2 |
7 files changed, 14 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.c/critical-1.c b/libgomp/testsuite/libgomp.c/critical-1.c index ecf5432..2b8503b 100644 --- a/libgomp/testsuite/libgomp.c/critical-1.c +++ b/libgomp/testsuite/libgomp.c/critical-1.c @@ -1,5 +1,7 @@ /* Trivial test of critical sections. */ +/* { dg-require-effective-target sync_int_long } */ + #include <omp.h> #include <sys/time.h> #include <unistd.h> diff --git a/libgomp/testsuite/libgomp.c/loop-1.c b/libgomp/testsuite/libgomp.c/loop-1.c index a90a8e6..11348dc 100644 --- a/libgomp/testsuite/libgomp.c/loop-1.c +++ b/libgomp/testsuite/libgomp.c/loop-1.c @@ -1,6 +1,8 @@ /* Test that all loop iterations are touched. This doesn't verify scheduling order, merely coverage. */ +/* { dg-require-effective-target sync_int_long } */ + #include <omp.h> #include <string.h> #include <assert.h> diff --git a/libgomp/testsuite/libgomp.c/loop-2.c b/libgomp/testsuite/libgomp.c/loop-2.c index 14f371d..4bae023 100644 --- a/libgomp/testsuite/libgomp.c/loop-2.c +++ b/libgomp/testsuite/libgomp.c/loop-2.c @@ -2,6 +2,8 @@ even thread distributions here; there are multiple valid solutions for uneven thread distributions. */ +/* { dg-require-effective-target sync_int_long } */ + #include <omp.h> #include <string.h> #include <assert.h> diff --git a/libgomp/testsuite/libgomp.c/ordered-1.c b/libgomp/testsuite/libgomp.c/ordered-1.c index 23ec125..c6143fa 100644 --- a/libgomp/testsuite/libgomp.c/ordered-1.c +++ b/libgomp/testsuite/libgomp.c/ordered-1.c @@ -3,6 +3,8 @@ /* Note that we never call GOMP_ordered_start in here. AFAICS, this is valid; the only requirement is "not more than once per iteration". */ +/* { dg-require-effective-target sync_int_long } */ + #include <omp.h> #include <string.h> #include <assert.h> diff --git a/libgomp/testsuite/libgomp.c/ordered-2.c b/libgomp/testsuite/libgomp.c/ordered-2.c index 15325b4..9156437 100644 --- a/libgomp/testsuite/libgomp.c/ordered-2.c +++ b/libgomp/testsuite/libgomp.c/ordered-2.c @@ -1,5 +1,7 @@ /* Trivial test of ordered. */ +/* { dg-require-effective-target sync_int_long } */ + #include <omp.h> #include <string.h> #include <assert.h> diff --git a/libgomp/testsuite/libgomp.c/sections-1.c b/libgomp/testsuite/libgomp.c/sections-1.c index 6785941..3a6584c 100644 --- a/libgomp/testsuite/libgomp.c/sections-1.c +++ b/libgomp/testsuite/libgomp.c/sections-1.c @@ -1,5 +1,7 @@ /* Test that all sections are touched. */ +/* { dg-require-effective-target sync_int_long } */ + #include <omp.h> #include <string.h> #include <assert.h> diff --git a/libgomp/testsuite/libgomp.c/single-1.c b/libgomp/testsuite/libgomp.c/single-1.c index d1fd5e2..1ce8911 100644 --- a/libgomp/testsuite/libgomp.c/single-1.c +++ b/libgomp/testsuite/libgomp.c/single-1.c @@ -1,5 +1,7 @@ /* Trivial test of single. */ +/* { dg-require-effective-target sync_int_long } */ + #include <omp.h> #include <sys/time.h> #include <unistd.h> |