diff options
author | Kaz Kojima <kkojima@gcc.gnu.org> | 2015-02-14 23:50:25 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@gcc.gnu.org> | 2015-02-14 23:50:25 +0000 |
commit | d3fb59c4b7f669053c82dfb85899a9a3728c695d (patch) | |
tree | 3cab6ef87198d9dce801658f643b7ff27c3ee19d /gcc | |
parent | cf3648f2452d516ab97d17d1c4ffc72d33a8e895 (diff) | |
download | gcc-d3fb59c4b7f669053c82dfb85899a9a3728c695d.zip gcc-d3fb59c4b7f669053c82dfb85899a9a3728c695d.tar.gz gcc-d3fb59c4b7f669053c82dfb85899a9a3728c695d.tar.bz2 |
re PR testsuite/64850 (FAIL: gfortran.dg/goacc/acc_on_device-1.f95 -O scan-rtl-dump-times expand "\\(call [^\\n]*\\"acc_on_device" 4)
PR testsuite/64850
Tweak acc_on_device* tests.
From-SVN: r220711
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/goacc/acc_on_device-2-off.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/goacc/acc_on_device-2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/goacc/acc_on_device-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/goacc/acc_on_device-1.f95 | 2 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/goacc/acc_on_device-2-off.f95 | 2 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/goacc/acc_on_device-2.f95 | 2 |
7 files changed, 17 insertions, 6 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f58cfcc..587b7a3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2015--02-14 Kaz Kojima <kkojima@gcc.gnu.org> + + PR testsuite/64850 + * gcc.dg/goacc/acc_on_device-1.c: Use a space instead of \\\" in + the expression to find calls. + * c-c++-common/goacc/acc_on_device-2.c: Likewise. + * c-c++-common/goacc/acc_on_device-2-off.c: Likewise. + * gfortran.dg/goacc/acc_on_device-1.f95: Likewise. + * gfortran.dg/goacc/acc_on_device-2.f95: Likewise. + * gfortran.dg/goacc/acc_on_device-2-off.f95: Likewise. + 2015-02-14 Marek Polacek <polacek@redhat.com> PR c/64768 diff --git a/gcc/testsuite/c-c++-common/goacc/acc_on_device-2-off.c b/gcc/testsuite/c-c++-common/goacc/acc_on_device-2-off.c index 25d21ad..ea31047 100644 --- a/gcc/testsuite/c-c++-common/goacc/acc_on_device-2-off.c +++ b/gcc/testsuite/c-c++-common/goacc/acc_on_device-2-off.c @@ -20,6 +20,6 @@ f (void) } /* Without -fopenacc, we're expecting one call. - { dg-final { scan-rtl-dump-times "\\\(call \[^\\n\]*\\\"acc_on_device" 1 "expand" } } */ + { dg-final { scan-rtl-dump-times "\\\(call \[^\\n\]* acc_on_device" 1 "expand" } } */ /* { dg-final { cleanup-rtl-dump "expand" } } */ diff --git a/gcc/testsuite/c-c++-common/goacc/acc_on_device-2.c b/gcc/testsuite/c-c++-common/goacc/acc_on_device-2.c index d5389a9..2f4ee2b 100644 --- a/gcc/testsuite/c-c++-common/goacc/acc_on_device-2.c +++ b/gcc/testsuite/c-c++-common/goacc/acc_on_device-2.c @@ -24,6 +24,6 @@ f (void) perturbs expansion as a builtin, which expects an int parameter. It's fine when changing acc_device_t to plain int, but that's not what we're doing in <openacc.h>. - { dg-final { scan-rtl-dump-times "\\\(call \[^\\n\]*\\\"acc_on_device" 0 "expand" { xfail c++ } } } */ + { dg-final { scan-rtl-dump-times "\\\(call \[^\\n\]* acc_on_device" 0 "expand" { xfail c++ } } } */ /* { dg-final { cleanup-rtl-dump "expand" } } */ diff --git a/gcc/testsuite/gcc.dg/goacc/acc_on_device-1.c b/gcc/testsuite/gcc.dg/goacc/acc_on_device-1.c index 1a0276e..d0dbc82 100644 --- a/gcc/testsuite/gcc.dg/goacc/acc_on_device-1.c +++ b/gcc/testsuite/gcc.dg/goacc/acc_on_device-1.c @@ -15,6 +15,6 @@ f (void) } /* Unsuitable to be handled as a builtin, so we're expecting four calls. - { dg-final { scan-rtl-dump-times "\\\(call \[^\\n\]*\\\"acc_on_device" 4 "expand" } } */ + { dg-final { scan-rtl-dump-times "\\\(call \[^\\n\]* acc_on_device" 4 "expand" } } */ /* { dg-final { cleanup-rtl-dump "expand" } } */ diff --git a/gcc/testsuite/gfortran.dg/goacc/acc_on_device-1.f95 b/gcc/testsuite/gfortran.dg/goacc/acc_on_device-1.f95 index 9dfde26..0126d9c 100644 --- a/gcc/testsuite/gfortran.dg/goacc/acc_on_device-1.f95 +++ b/gcc/testsuite/gfortran.dg/goacc/acc_on_device-1.f95 @@ -17,6 +17,6 @@ logical function f () end function f ! Unsuitable to be handled as a builtin, so we're expecting four calls. -! { dg-final { scan-rtl-dump-times "\\\(call \[^\\n\]*\\\"acc_on_device" 4 "expand" } } +! { dg-final { scan-rtl-dump-times "\\\(call \[^\\n\]* acc_on_device" 4 "expand" } } ! { dg-final { cleanup-rtl-dump "expand" } } diff --git a/gcc/testsuite/gfortran.dg/goacc/acc_on_device-2-off.f95 b/gcc/testsuite/gfortran.dg/goacc/acc_on_device-2-off.f95 index cf28264..0a4978e 100644 --- a/gcc/testsuite/gfortran.dg/goacc/acc_on_device-2-off.f95 +++ b/gcc/testsuite/gfortran.dg/goacc/acc_on_device-2-off.f95 @@ -34,6 +34,6 @@ logical (4) function f () end function f ! Without -fopenacc, we're expecting one call. -! { dg-final { scan-rtl-dump-times "\\\(call \[^\\n\]*\\\"acc_on_device" 1 "expand" } } +! { dg-final { scan-rtl-dump-times "\\\(call \[^\\n\]* acc_on_device" 1 "expand" } } ! { dg-final { cleanup-rtl-dump "expand" } } diff --git a/gcc/testsuite/gfortran.dg/goacc/acc_on_device-2.f95 b/gcc/testsuite/gfortran.dg/goacc/acc_on_device-2.f95 index 7730a60..43ad022 100644 --- a/gcc/testsuite/gfortran.dg/goacc/acc_on_device-2.f95 +++ b/gcc/testsuite/gfortran.dg/goacc/acc_on_device-2.f95 @@ -35,6 +35,6 @@ end function f ! With -fopenacc, we're expecting the builtin to be expanded, so no calls. ! TODO: not working. -! { dg-final { scan-rtl-dump-times "\\\(call \[^\\n\]*\\\"acc_on_device" 0 "expand" { xfail *-*-* } } } +! { dg-final { scan-rtl-dump-times "\\\(call \[^\\n\]* acc_on_device" 0 "expand" { xfail *-*-* } } } ! { dg-final { cleanup-rtl-dump "expand" } } |