aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/raoint-atomic-fetch.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-11-08 12:36:43 +0100
committerMartin Liska <mliska@suse.cz>2022-11-08 12:36:43 +0100
commit4b13c73bba935443be3207abf26f7ba05f79badc (patch)
treea6bb1525d07859fa8fc6f61dd13df7ddfd1ac254 /gcc/testsuite/gcc.target/i386/raoint-atomic-fetch.c
parent33f5dde0cd15df9cf89b29280d4ff5fcf7b30e66 (diff)
parentfa271afb58423014e2feef9f15c1a87428e64ddc (diff)
downloadgcc-devel/sphinx.zip
gcc-devel/sphinx.tar.gz
gcc-devel/sphinx.tar.bz2
Merge branch 'master' into devel/sphinxdevel/sphinx
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/raoint-atomic-fetch.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/raoint-atomic-fetch.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/gcc/testsuite/gcc.target/i386/raoint-atomic-fetch.c b/gcc/testsuite/gcc.target/i386/raoint-atomic-fetch.c
deleted file mode 100644
index ac4099d..0000000
--- a/gcc/testsuite/gcc.target/i386/raoint-atomic-fetch.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-mraoint -O2 -mprefer-remote-atomic" } */
-/* { dg-final { scan-assembler-times "aadd" 2 { target {! ia32 } } } } */
-/* { dg-final { scan-assembler-times "aand" 2 { target {! ia32 } } } } */
-/* { dg-final { scan-assembler-times "aor" 2 { target {! ia32 } } } } */
-/* { dg-final { scan-assembler-times "axor" 2 { target {! ia32 } } } } */
-/* { dg-final { scan-assembler-times "aadd" 1 { target ia32 } } } */
-/* { dg-final { scan-assembler-times "aand" 1 { target ia32 } } } */
-/* { dg-final { scan-assembler-times "aor" 1 { target ia32 } } } */
-/* { dg-final { scan-assembler-times "axor" 1 { target ia32 } } } */
-volatile int x;
-volatile long long y;
-int *a;
-long long *b;
-
-void extern
-rao_int_test (void)
-{
- __atomic_add_fetch (a, x, __ATOMIC_RELAXED);
- __atomic_and_fetch (a, x, __ATOMIC_RELAXED);
- __atomic_or_fetch (a, x, __ATOMIC_RELAXED);
- __atomic_xor_fetch (a, x, __ATOMIC_RELAXED);
-#ifdef __x86_64__
- __atomic_add_fetch (b, y, __ATOMIC_RELAXED);
- __atomic_and_fetch (b, y, __ATOMIC_RELAXED);
- __atomic_or_fetch (b, y, __ATOMIC_RELAXED);
- __atomic_xor_fetch (b, y, __ATOMIC_RELAXED);
-#endif
-}