aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2016-01-16 22:18:47 +0000
committerTom de Vries <vries@gcc.gnu.org>2016-01-16 22:18:47 +0000
commitd69da357f77ea4fe440ffe28eeac3229d09cb915 (patch)
tree4b8d3a0d2a60ced203b101e113974596d7f25b11
parenta38452837f454a14b3bec38d4b53a1c633107f86 (diff)
downloadgcc-d69da357f77ea4fe440ffe28eeac3229d09cb915.zip
gcc-d69da357f77ea4fe440ffe28eeac3229d09cb915.tar.gz
gcc-d69da357f77ea4fe440ffe28eeac3229d09cb915.tar.bz2
Add goacc/kernels-alias-ipa-pta-4.c
2016-01-16 Tom de Vries <tom@codesourcery.com> * c-c++-common/goacc/kernels-alias-ipa-pta-4.c: New test. From-SVN: r232471
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/c-c++-common/goacc/kernels-alias-ipa-pta-4.c21
2 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 172d0f6..88b45b1 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2016-01-16 Tom de Vries <tom@codesourcery.com>
+ * c-c++-common/goacc/kernels-alias-ipa-pta-4.c: New test.
+
+2016-01-16 Tom de Vries <tom@codesourcery.com>
+
* gcc.dg/parloops-exit-first-loop-alt.c: Move ...
* gcc.dg/autopar/parloops-exit-first-loop-alt.c: ... here. Remove
redundant dg-require-effective-target pthread.
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-alias-ipa-pta-4.c b/gcc/testsuite/c-c++-common/goacc/kernels-alias-ipa-pta-4.c
new file mode 100644
index 0000000..20b21dc
--- /dev/null
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-alias-ipa-pta-4.c
@@ -0,0 +1,21 @@
+/* { dg-additional-options "-O2" } */
+/* { dg-additional-options "-fipa-pta -fdump-tree-optimized" } */
+
+void
+foo (void)
+{
+ unsigned int a;
+ unsigned int b;
+ unsigned int c;
+
+#pragma acc kernels pcopyout (a, b, c)
+ {
+ a = 0;
+ b = 1;
+ c = a;
+ }
+}
+
+/* { dg-final { scan-tree-dump-times "(?n)= 0;$" 2 "optimized" } } */
+/* { dg-final { scan-tree-dump-times "(?n)= 1;$" 1 "optimized" } } */
+/* { dg-final { scan-tree-dump-times "(?n)= \\*_\[0-9\];$" 0 "optimized" } } */