| /* The loops of simt-collapse-1.c, with num_teams and num_threads clauses. | |
| The c2_gen shapes, whose bounds are only known at run time, fault on the | |
| GPU with the SIMT series: a bound that the host code copies into a vector | |
| register while EXEC has a single lane set is used inside the SIMT region, | |
| where the other lanes read stale values. One of the c2_rstep shapes, | |
| whose step is only known at run time, computes wrong results. The other | |
| shapes pass. */ | |
| /* { dg-do run } */ | |
| /* { dg-xfail-run-if "SIMT loops with runtime bounds or steps and num_teams or num_threads fail" { offload_device_gcn } } */ | |
| /* { dg-additional-options "-O2" } */ | |
| /* { dg-xfail-if "--param=offload-gpu-mode=simt-directed needs the amdgcn SIMT series" { offload_target_amdgcn } } */ | |
| /* { dg-additional-options "--param=offload-gpu-mode=simt-directed" { target offload_target_amdgcn } } */ | |
| #define SIMT_CLAUSES(TEAMS, THREADS) num_teams(TEAMS) num_threads(THREADS) | |
| #include "simt-collapse-1.c" |