mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-14 17:57:39 +01:00
Updated dependencies: * GMP 6.2.1 * ISL 0.24 * MPL 1.2.1 * MPFR 4.1.0 The dependencies were pulled in by running the ./contrib/download_prerequisites script and then manually removing the symbolic links and archives, and renaming the directories (i.e mv isl-0.24 to isl)
19 lines
420 B
C
19 lines
420 B
C
/* { dg-skip-if "" { *-*-* } } */
|
|
|
|
#pragma acc routine nohost
|
|
int f1(int x)
|
|
{
|
|
/* Make sure this fails host compilation. */
|
|
#if defined ACC_DEVICE_TYPE_host
|
|
asm ("IT'S A TRAP");
|
|
#elif defined ACC_DEVICE_TYPE_nvidia
|
|
asm ("{\n\t .reg .u32 %tid_x;\n\t mov.u32 %tid_x, %tid.x;\n\t}");
|
|
#elif defined ACC_DEVICE_TYPE_radeon
|
|
asm ("s_nop 0");
|
|
#else
|
|
# error Not ported to this ACC_DEVICE_TYPE
|
|
#endif
|
|
|
|
return 2 * x;
|
|
}
|