atomic-compare-exchange-1.c, [...]: Declare main as returning int.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 18 Nov 2013 14:50:11 +0000 (14:50 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 18 Nov 2013 14:50:11 +0000 (14:50 +0000)
* testsuite/libatomic.c/atomic-compare-exchange-1.c,
testsuite/libatomic.c/atomic-compare-exchange-2.c,
testsuite/libatomic.c/atomic-compare-exchange-3.c,
testsuite/libatomic.c/atomic-compare-exchange-4.c,
testsuite/libatomic.c/atomic-compare-exchange-5.c,
testsuite/libatomic.c/atomic-exchange-1.c,
testsuite/libatomic.c/atomic-exchange-2.c,
testsuite/libatomic.c/atomic-exchange-3.c,
testsuite/libatomic.c/atomic-exchange-4.c,
testsuite/libatomic.c/atomic-exchange-5.c,
testsuite/libatomic.c/atomic-generic.c,
testsuite/libatomic.c/atomic-load-1.c,
testsuite/libatomic.c/atomic-load-2.c,
testsuite/libatomic.c/atomic-load-3.c,
testsuite/libatomic.c/atomic-load-4.c,
testsuite/libatomic.c/atomic-load-5.c,
testsuite/libatomic.c/atomic-op-1.c,
testsuite/libatomic.c/atomic-op-2.c,
testsuite/libatomic.c/atomic-op-3.c,
testsuite/libatomic.c/atomic-op-4.c,
testsuite/libatomic.c/atomic-op-5.c,
testsuite/libatomic.c/atomic-store-1.c,
testsuite/libatomic.c/atomic-store-2.c,
testsuite/libatomic.c/atomic-store-3.c,
testsuite/libatomic.c/atomic-store-4.c,
testsuite/libatomic.c/atomic-store-5.c: Declare main as returning
int.  Do not require built-in sync support or add target-specific
options.
* testsuite/libatomic.c/atomic-exchange-1.c,
testsuite/libatomic.c/atomic-exchange-2.c,
testsuite/libatomic.c/atomic-exchange-3.c,
testsuite/libatomic.c/atomic-exchange-4.c,
testsuite/libatomic.c/atomic-exchange-5.c: Separate increments of
count from expression using value of count.

From-SVN: r204953

27 files changed:
libatomic/ChangeLog
libatomic/testsuite/libatomic.c/atomic-compare-exchange-1.c
libatomic/testsuite/libatomic.c/atomic-compare-exchange-2.c
libatomic/testsuite/libatomic.c/atomic-compare-exchange-3.c
libatomic/testsuite/libatomic.c/atomic-compare-exchange-4.c
libatomic/testsuite/libatomic.c/atomic-compare-exchange-5.c
libatomic/testsuite/libatomic.c/atomic-exchange-1.c
libatomic/testsuite/libatomic.c/atomic-exchange-2.c
libatomic/testsuite/libatomic.c/atomic-exchange-3.c
libatomic/testsuite/libatomic.c/atomic-exchange-4.c
libatomic/testsuite/libatomic.c/atomic-exchange-5.c
libatomic/testsuite/libatomic.c/atomic-generic.c
libatomic/testsuite/libatomic.c/atomic-load-1.c
libatomic/testsuite/libatomic.c/atomic-load-2.c
libatomic/testsuite/libatomic.c/atomic-load-3.c
libatomic/testsuite/libatomic.c/atomic-load-4.c
libatomic/testsuite/libatomic.c/atomic-load-5.c
libatomic/testsuite/libatomic.c/atomic-op-1.c
libatomic/testsuite/libatomic.c/atomic-op-2.c
libatomic/testsuite/libatomic.c/atomic-op-3.c
libatomic/testsuite/libatomic.c/atomic-op-4.c
libatomic/testsuite/libatomic.c/atomic-op-5.c
libatomic/testsuite/libatomic.c/atomic-store-1.c
libatomic/testsuite/libatomic.c/atomic-store-2.c
libatomic/testsuite/libatomic.c/atomic-store-3.c
libatomic/testsuite/libatomic.c/atomic-store-4.c
libatomic/testsuite/libatomic.c/atomic-store-5.c

index 06aff7feb350f192764f121e300679fca80171e9..143a72926416d754d1a2a6b3c70d29ff2575a28f 100644 (file)
@@ -1,3 +1,40 @@
+2013-11-18  Joseph Myers  <joseph@codesourcery.com>
+
+       * testsuite/libatomic.c/atomic-compare-exchange-1.c,
+       testsuite/libatomic.c/atomic-compare-exchange-2.c,
+       testsuite/libatomic.c/atomic-compare-exchange-3.c,
+       testsuite/libatomic.c/atomic-compare-exchange-4.c,
+       testsuite/libatomic.c/atomic-compare-exchange-5.c,
+       testsuite/libatomic.c/atomic-exchange-1.c,
+       testsuite/libatomic.c/atomic-exchange-2.c,
+       testsuite/libatomic.c/atomic-exchange-3.c,
+       testsuite/libatomic.c/atomic-exchange-4.c,
+       testsuite/libatomic.c/atomic-exchange-5.c,
+       testsuite/libatomic.c/atomic-generic.c,
+       testsuite/libatomic.c/atomic-load-1.c,
+       testsuite/libatomic.c/atomic-load-2.c,
+       testsuite/libatomic.c/atomic-load-3.c,
+       testsuite/libatomic.c/atomic-load-4.c,
+       testsuite/libatomic.c/atomic-load-5.c,
+       testsuite/libatomic.c/atomic-op-1.c,
+       testsuite/libatomic.c/atomic-op-2.c,
+       testsuite/libatomic.c/atomic-op-3.c,
+       testsuite/libatomic.c/atomic-op-4.c,
+       testsuite/libatomic.c/atomic-op-5.c,
+       testsuite/libatomic.c/atomic-store-1.c,
+       testsuite/libatomic.c/atomic-store-2.c,
+       testsuite/libatomic.c/atomic-store-3.c,
+       testsuite/libatomic.c/atomic-store-4.c,
+       testsuite/libatomic.c/atomic-store-5.c: Declare main as returning
+       int.  Do not require built-in sync support or add target-specific
+       options.
+       * testsuite/libatomic.c/atomic-exchange-1.c,
+       testsuite/libatomic.c/atomic-exchange-2.c,
+       testsuite/libatomic.c/atomic-exchange-3.c,
+       testsuite/libatomic.c/atomic-exchange-4.c,
+       testsuite/libatomic.c/atomic-exchange-5.c: Separate increments of
+       count from expression using value of count.
+
 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/x86/fenv.c: New file.
index 2ac54e80887f55a57ccc94333460d9f65e3d6c32..33dba8640ea9ab98a421a19040a2a50bdb256d27 100644 (file)
@@ -1,7 +1,6 @@
 /* Test __atomic routines for existence and proper execution on 1 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_char_short } */
 
 /* Test the execution of the __atomic_compare_exchange_n builtin for a char.  */
 
@@ -16,6 +15,7 @@ char zero = 0;
 #define STRONG 0
 #define WEAK 1
 
+int
 main ()
 {
 
index 73b259777480cc8a66afd2c7c97d12e6561482a3..588f3d2faf7035f33c2f6f487fba92ec19529062 100644 (file)
@@ -1,7 +1,6 @@
 /* Test __atomic routines for existence and proper execution on 2 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_char_short } */
 
 /* Test the execution of the __atomic_compare_exchange_n builtin for a short.  */
 
@@ -16,6 +15,7 @@ short zero = 0;
 #define STRONG 0
 #define WEAK 1
 
+int
 main ()
 {
 
index 26097288c9d3ebc766946f0bbe2f03ee49c3e2be..f424c4a2fb113c67c6bbc7c90a3719d2852c51e9 100644 (file)
@@ -1,7 +1,6 @@
 /* Test __atomic routines for existence and proper execution on 4 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_int_long } */
 
 /* Test the execution of the __atomic_compare_exchange_n builtin for an int.  */
 
@@ -16,6 +15,7 @@ int zero = 0;
 #define STRONG 0
 #define WEAK 1
 
+int
 main ()
 {
 
index b6c783ddaba84801cec31550bf6603f0089946b0..5274f8c44c77030e1138a5ba6e9b8168452bfbf1 100644 (file)
@@ -1,9 +1,7 @@
 /* Test __atomic routines for existence and proper execution on 8 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_long_long_runtime } */
 /* { dg-options "" } */
-/* { dg-options "-march=pentium" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
 
 /* Test the execution of __atomic_compare_exchange_n builtin for a long_long.  */
 
@@ -18,6 +16,7 @@ long long zero = 0;
 #define STRONG 0
 #define WEAK 1
 
+int
 main ()
 {
 
index 4cc0209b33f96f3f78023530bc0029ae521d7f18..fd05ce7444e4cd39b23b6bae498523a8e02eea02 100644 (file)
@@ -1,8 +1,7 @@
 /* Test __atomic routines for existence and proper execution on 16 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_int_128_runtime } */
-/* { dg-options "-mcx16" { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-require-effective-target int128 } */
 
 /* Test the execution of __atomic_compare_exchange_n builtin for an int_128.  */
 
@@ -17,6 +16,7 @@ __int128_t zero = 0;
 #define STRONG 0
 #define WEAK 1
 
+int
 main ()
 {
 
index fb78cdbca544f36f210090eb3d97fcc6ee8f8573..71c19807f37246acd8b5c5aef2f58e5da0b294e7 100644 (file)
@@ -1,7 +1,6 @@
 /* Test __atomic routines for existence and proper execution on 1 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_char_short } */
 
 /* Test the execution of the __atomic_exchange_n builtin for a char.  */
 
@@ -9,25 +8,31 @@ extern void abort(void);
 
 char v, count, ret;
 
+int
 main ()
 {
   v = 0;
   count = 0;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELAXED) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELAXED) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQUIRE) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQUIRE) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELEASE) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELEASE) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQ_REL) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQ_REL) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_SEQ_CST) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_SEQ_CST) != count)
     abort ();
+  count++;
 
   /* Now test the generic version.  */
 
index 153771a2cdc6c97525b0e64041c6d68e907c1025..e06d729517f01d2adcb0e0ce6f6679e6ff69f72f 100644 (file)
@@ -1,7 +1,6 @@
 /* Test __atomic routines for existence and proper execution on 2 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_char_short } */
 
 /* Test the execution of the __atomic_X builtin for a short.  */
 
@@ -9,25 +8,31 @@ extern void abort(void);
 
 short v, count, ret;
 
+int
 main ()
 {
   v = 0;
   count = 0;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELAXED) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELAXED) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQUIRE) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQUIRE) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELEASE) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELEASE) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQ_REL) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQ_REL) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_SEQ_CST) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_SEQ_CST) != count)
     abort ();
+  count++;
 
   /* Now test the generic version.  */
 
index fbf8f6b966c08412199c919715466f7c96ec7a96..56841d99bb714c089db48bd5630d5b380fe7b091 100644 (file)
@@ -1,7 +1,6 @@
 /* Test __atomic routines for existence and proper execution on 4 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_int_long } */
 
 /* Test the execution of the __atomic_X builtin for an int.  */
 
@@ -9,25 +8,31 @@ extern void abort(void);
 
 int v, count, ret;
 
+int
 main ()
 {
   v = 0;
   count = 0;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELAXED) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELAXED) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQUIRE) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQUIRE) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELEASE) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELEASE) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQ_REL) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQ_REL) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_SEQ_CST) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_SEQ_CST) != count)
     abort ();
+  count++;
 
   /* Now test the generic version.  */
 
index 13022dd38d20283f264ae6546e8abe7c793c25f5..db867d6e5d6c31699bfe413d1dd8812226032d4c 100644 (file)
@@ -1,9 +1,7 @@
 /* Test __atomic routines for existence and proper execution on 8 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_long_long_runtime } */
 /* { dg-options "" } */
-/* { dg-options "-march=pentium" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
 
 /* Test the execution of the __atomic_X builtin for a long_long.  */
 
@@ -11,25 +9,31 @@ extern void abort(void);
 
 long long v, count, ret;
 
+int
 main ()
 {
   v = 0;
   count = 0;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELAXED) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELAXED) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQUIRE) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQUIRE) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELEASE) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELEASE) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQ_REL) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQ_REL) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_SEQ_CST) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_SEQ_CST) != count)
     abort ();
+  count++;
 
   /* Now test the generic version.  */
 
index b0c84b17fd32c2f66080dc346fff1919d3eaa36a..02d4a8897f2313c8b26b46c885b76cdf210a929f 100644 (file)
@@ -1,8 +1,7 @@
 /* Test __atomic routines for existence and proper execution on 16 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_int_128_runtime } */
-/* { dg-options "-mcx16" { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-require-effective-target int128 } */
 
 /* Test the execution of the __atomic_X builtin for a 16 byte value.  */
 
@@ -10,25 +9,31 @@ extern void abort(void);
 
 __int128_t v, count, ret;
 
+int
 main ()
 {
   v = 0;
   count = 0;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELAXED) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELAXED) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQUIRE) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQUIRE) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELEASE) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_RELEASE) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQ_REL) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_ACQ_REL) != count)
     abort ();
+  count++;
 
-  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_SEQ_CST) !=  count++) 
+  if (__atomic_exchange_n (&v, count + 1, __ATOMIC_SEQ_CST) != count)
     abort ();
+  count++;
 
   /* Now test the generic version.  */
 
index c3c486a0396bbe8cc65929cb390e7ef3c6260470..11ef6c5831da42422112909bf9fa10811a0ce8bc 100644 (file)
@@ -22,6 +22,7 @@ test_struct a,b;
 
 int size = sizeof (test_struct);
 /* Test for consistency on sizes 1, 2, 4, 8, 16 and 32.  */
+int
 main ()
 {
   test_struct c;
index 928f9b0f10b3c8504672b456bb2247d4ea762d5e..d7e430434d390326f9cbb37842ba83a924ef3e63 100644 (file)
@@ -1,7 +1,6 @@
 /* Test __atomic routines for existence and proper execution on 1 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_char_short } */
 
 
 /* Test the execution of the __atomic_load_n builtin for a char.  */
@@ -10,6 +9,7 @@ extern void abort(void);
 
 char v, count;
 
+int
 main ()
 {
   v = 0;
index 3d1df1cfffa96c90b67c408dcff667a7f86a100e..df2966be7a2448356855b46710093e492bed8bb6 100644 (file)
@@ -1,7 +1,6 @@
 /* Test __atomic routines for existence and proper execution on 2 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_char_short } */
 
 
 /* Test the execution of the __atomic_load_n builtin for a short.  */
@@ -11,6 +10,7 @@ extern void abort(void);
 short v, count;
 
 
+int
 main ()
 {
   v = 0;
index ec238be9e517b4666bb4adf70fa79c6d0db3cb9f..b54cc4b2c75a8bd10aacaa77d49e5c04854ccf85 100644 (file)
@@ -1,13 +1,13 @@
 /* Test __atomic routines for existence and proper execution on 4 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_int_long } */
 
 extern void abort(void);
 
 int v, count;
 
 
+int
 main ()
 {
   v = 0;
index 032ad246fd06ca0d5e1aab2fde1a5e77b85294d5..97e46861d26d59ee23c030b6ab6d730baf0e34ed 100644 (file)
@@ -1,14 +1,13 @@
 /* Test __atomic routines for existence and proper execution on 8 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_long_long_runtime } */
 /* { dg-options "" } */
-/* { dg-options "-march=pentium" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
 
 extern void abort(void);
 
 long long v, count;
 
+int
 main ()
 {
   v = 0;
index 31d806633e1c670e3763b98d01db8a18c47afa90..570539376380920231ceafdfce7c62cd1453604b 100644 (file)
@@ -1,13 +1,13 @@
 /* Test __atomic routines for existence and proper execution on 16 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_int_128_runtime } */
-/* { dg-options "-mcx16" { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-require-effective-target int128 } */
 
 extern void abort(void);
 
 __int128_t v, count;
 
+int
 main ()
 {
   v = 0;
index bc1716f7799916a0f9162d052f326bdc2507e854..56632291489d2f601c1c5bd24db7bbb9247cd764 100644 (file)
@@ -1,7 +1,6 @@
 /* Test __atomic routines for existence and proper execution on 1 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_char_short } */
 
 /* Test the execution of the __atomic_*OP builtin routines for a char.  */
 
@@ -527,6 +526,7 @@ test_or ()
     abort ();
 }
 
+int
 main ()
 {
   test_fetch_add ();
index 8755340cca2218cb27b51ecb601e31b04837d057..436b206b4226550ab401aa11ba3bc7c74c258f9e 100644 (file)
@@ -1,7 +1,6 @@
 /* Test __atomic routines for existence and proper execution on 2 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_char_short } */
 
 
 /* Test the execution of the __atomic_*OP builtin routines for a short.  */
@@ -528,6 +527,7 @@ test_or ()
     abort ();
 }
 
+int
 main ()
 {
   test_fetch_add ();
index 69db4894b638a4096595e794d7da7435b4fb01b9..d72be2e9d3052e0b285e554bd35e3d059593ae69 100644 (file)
@@ -1,7 +1,6 @@
 /* Test __atomic routines for existence and proper execution on 4 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_int_long } */
 
 /* Test the execution of the __atomic_*OP builtin routines for an int.  */
 
@@ -527,6 +526,7 @@ test_or ()
     abort ();
 }
 
+int
 main ()
 {
   test_fetch_add ();
index 7c4a819bfaaea9fb16042e28d8a286e7c68e266d..0998c3a65483d1c495d6f40b86da583d8b9550ef 100644 (file)
@@ -1,9 +1,7 @@
 /* Test __atomic routines for existence and proper execution on 8 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_long_long_runtime } */
 /* { dg-options "" } */
-/* { dg-options "-march=pentium" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
 
 /* Test the execution of the __atomic_*OP builtin routines for long long.  */
 
@@ -529,6 +527,7 @@ test_or ()
     abort ();
 }
 
+int
 main ()
 {
   test_fetch_add ();
index e78d81509978c57acff5d79109143343fed41a62..763880da0fc8ed9bf13ca9f828bd68377a280ca1 100644 (file)
@@ -1,8 +1,7 @@
 /* Test __atomic routines for existence and proper execution on 16 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_int_128_runtime } */
-/* { dg-options "-mcx16" { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-require-effective-target int128 } */
 
 /* Test the execution of the __atomic_*OP builtin routines for an int_128.  */
 
@@ -528,6 +527,7 @@ test_or ()
     abort ();
 }
 
+int
 main ()
 {
   test_fetch_add ();
index f99eb9c844f6a79eb026fe02d26921d21251ca0e..019aa423f2e40db46db41e2d2e5755b2d67b6886 100644 (file)
@@ -1,7 +1,6 @@
 /* Test __atomic routines for existence and proper execution on 1 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_char_short } */
 
 /* Test the execution of the __atomic_store_n builtin for a char.  */
 
@@ -9,6 +8,7 @@ extern void abort(void);
 
 char v, count;
 
+int
 main ()
 {
   v = 0;
index da346fd7de43e97844ca0bf58bc7eb9ba9229f30..278152788fbbf58621bdf8bdfa3455dc614df4a5 100644 (file)
@@ -1,7 +1,6 @@
 /* Test __atomic routines for existence and proper execution on 2 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_char_short } */
 
 /* Test the execution of the __atomic_store_n builtin for a short.  */
 
@@ -9,6 +8,7 @@ extern void abort(void);
 
 short v, count;
 
+int
 main ()
 {
   v = 0;
index b691da4592fbeab665c454a8ff3eebc0508f3a22..dbbb32d86cdc4969e68c66a8758a059c19c946e7 100644 (file)
@@ -1,7 +1,6 @@
 /* Test __atomic routines for existence and proper execution on 4 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_int_long } */
 
 /* Test the execution of the __atomic_store_n builtin for an int.  */
 
@@ -9,6 +8,7 @@ extern void abort(void);
 
 int v, count;
 
+int
 main ()
 {
   v = 0;
index 0863be99d011fa9844083c46cc0712e7cd50762f..a69b9d07896cf2e8750c0210903bedb6fa5fe1a2 100644 (file)
@@ -1,9 +1,7 @@
 /* Test __atomic routines for existence and proper execution on 8 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_long_long_runtime } */
 /* { dg-options "" } */
-/* { dg-options "-march=pentium" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
 
 /* Test the execution of the __atomic_store_n builtin for a long long.  */
 
@@ -11,6 +9,7 @@ extern void abort(void);
 
 long long v, count;
 
+int
 main ()
 {
   v = 0;
index 763d29e240cfa36bf0ceb3a47c38ffd45d6fffa5..16440ce005901dbd268bf92d5145d4f993c7da42 100644 (file)
@@ -1,8 +1,7 @@
 /* Test __atomic routines for existence and proper execution on 16 byte 
    values with each valid memory model.  */
 /* { dg-do run } */
-/* { dg-require-effective-target sync_int_128_runtime } */
-/* { dg-options "-mcx16" { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-require-effective-target int128 } */
 
 /* Test the execution of the __atomic_store_n builtin for a 16 byte value.  */
 
@@ -10,6 +9,7 @@ extern void abort(void);
 
 __int128_t v, count;
 
+int
 main ()
 {
   v = 0;