From: Tom de Vries Date: Wed, 12 Aug 2020 14:11:27 +0000 (+0200) Subject: [testsuite, nvptx] Borrow ia64-sync-*.c test-cases in gcc.target/nvptx X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a12026e9dd19caee8ce2f53e703564480e9709d4;p=gcc.git [testsuite, nvptx] Borrow ia64-sync-*.c test-cases in gcc.target/nvptx 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. --- 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 index 00000000000..7685a799642 --- /dev/null +++ b/gcc/testsuite/gcc.target/nvptx/ia64-sync-1.c @@ -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 index 00000000000..d229b5f9181 --- /dev/null +++ b/gcc/testsuite/gcc.target/nvptx/ia64-sync-2.c @@ -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 index 00000000000..353fd74da57 --- /dev/null +++ b/gcc/testsuite/gcc.target/nvptx/ia64-sync-3.c @@ -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 index 00000000000..3547429fe09 --- /dev/null +++ b/gcc/testsuite/gcc.target/nvptx/ia64-sync-4.c @@ -0,0 +1,3 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -finline-functions" } */ +#include "../../gcc.dg/ia64-sync-4.c"