From a12026e9dd19caee8ce2f53e703564480e9709d4 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 12 Aug 2020 16:11:27 +0200 Subject: [PATCH] [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. --- gcc/testsuite/gcc.target/nvptx/ia64-sync-1.c | 2 ++ gcc/testsuite/gcc.target/nvptx/ia64-sync-2.c | 2 ++ gcc/testsuite/gcc.target/nvptx/ia64-sync-3.c | 2 ++ gcc/testsuite/gcc.target/nvptx/ia64-sync-4.c | 3 +++ 4 files changed, 9 insertions(+) create mode 100644 gcc/testsuite/gcc.target/nvptx/ia64-sync-1.c create mode 100644 gcc/testsuite/gcc.target/nvptx/ia64-sync-2.c create mode 100644 gcc/testsuite/gcc.target/nvptx/ia64-sync-3.c create mode 100644 gcc/testsuite/gcc.target/nvptx/ia64-sync-4.c 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" -- 2.30.2