OpenACC acc_on_device.
[official-gcc.git] / gcc / testsuite / c-c++-common / goacc / acc_on_device-1.c
blobd0e137bfcc15ee94d40d308fe80b80de0e53b1fb
1 /* Have to enable optimizations, as otherwise builtins won't be expanded. */
2 /* { dg-additional-options "-O -fdump-rtl-expand" } */
4 int
5 f (void)
7 int r = 0;
9 r |= acc_on_device ();
10 r |= acc_on_device (1, 2);
11 r |= acc_on_device (3.14);
12 r |= acc_on_device ("hello");
14 return r;
17 /* Unsuitable to be handled as a builtin, so we're expecting four calls.
18 { dg-final { scan-rtl-dump-times "\\\(call \[^\\n\]*\\\"acc_on_device" 4 "expand" } } */
20 /* { dg-final { cleanup-rtl-dump "expand" } } */