[hsa] Fix PR82416 testcase
2018-02-08 Martin Jambor <mjambor@suse.cz> * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target clonable. From-SVN: r257485
This commit is contained in:
parent
c7c30edd4a
commit
3d2249215e
2 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2018-02-08 Martin Jambor <mjambor@suse.cz>
|
||||
|
||||
* testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
|
||||
clonable.
|
||||
|
||||
2018-02-08 Martin Jambor <mjambor@suse.cz>
|
||||
|
||||
* testsuite/libgomp.hsa.c/staticvar.c: New test.
|
||||
|
|
|
@ -7,8 +7,8 @@ toup (char X)
|
|||
return X;
|
||||
}
|
||||
|
||||
char __attribute__ ((noipa))
|
||||
target_toup (char X)
|
||||
char
|
||||
target_toup_1 (char X)
|
||||
{
|
||||
char r;
|
||||
#pragma omp target map(to:X) map(from:r)
|
||||
|
@ -21,6 +21,12 @@ target_toup (char X)
|
|||
return r;
|
||||
}
|
||||
|
||||
char __attribute__ ((noipa))
|
||||
target_toup (char X)
|
||||
{
|
||||
return target_toup_1 (X);
|
||||
}
|
||||
|
||||
int main (int argc, char **argv)
|
||||
{
|
||||
char a = 'a';
|
||||
|
|
Loading…
Add table
Reference in a new issue