[testsuite, nvptx] Borrow ia64-sync-*.c test-cases in gcc.target/nvptx
authorTom de Vries <tdevries@suse.de>
Wed, 12 Aug 2020 14:11:27 +0000 (16:11 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 12 Aug 2020 14:35:20 +0000 (16:35 +0200)
In absence of nvptx-enabling for effective target sync_int_long (see PR96494),
copy a few test-cases to gcc.target/nvptx.

Tested on nvptx.

gcc/testsuite/ChangeLog:

* gcc.target/nvptx/ia64-sync-1.c: New test.
* gcc.target/nvptx/ia64-sync-2.c: New test.
* gcc.target/nvptx/ia64-sync-3.c: New test.
* gcc.target/nvptx/ia64-sync-4.c: New test.

gcc/testsuite/gcc.target/nvptx/ia64-sync-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/nvptx/ia64-sync-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/nvptx/ia64-sync-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/nvptx/ia64-sync-4.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/nvptx/ia64-sync-1.c b/gcc/testsuite/gcc.target/nvptx/ia64-sync-1.c
new file mode 100644 (file)
index 0000000..7685a79
--- /dev/null
@@ -0,0 +1,2 @@
+/* { dg-do run } */
+#include "../../gcc.dg/ia64-sync-1.c"
diff --git a/gcc/testsuite/gcc.target/nvptx/ia64-sync-2.c b/gcc/testsuite/gcc.target/nvptx/ia64-sync-2.c
new file mode 100644 (file)
index 0000000..d229b5f
--- /dev/null
@@ -0,0 +1,2 @@
+/* { dg-do run } */
+#include "../../gcc.dg/ia64-sync-2.c"
diff --git a/gcc/testsuite/gcc.target/nvptx/ia64-sync-3.c b/gcc/testsuite/gcc.target/nvptx/ia64-sync-3.c
new file mode 100644 (file)
index 0000000..353fd74
--- /dev/null
@@ -0,0 +1,2 @@
+/* { dg-do run } */
+#include "../../gcc.dg/ia64-sync-3.c"
diff --git a/gcc/testsuite/gcc.target/nvptx/ia64-sync-4.c b/gcc/testsuite/gcc.target/nvptx/ia64-sync-4.c
new file mode 100644 (file)
index 0000000..3547429
--- /dev/null
@@ -0,0 +1,3 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -finline-functions" } */
+#include "../../gcc.dg/ia64-sync-4.c"