Niels Sascha Reedijk 92b3138b83 Import GCC 13.1.0 and dependencies
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)
2023-06-18 01:43:18 +01:00

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;
}