Commit d69da357 by Tom de Vries Committed by Tom de Vries

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
parent a3845283
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.
......
/* { 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" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment