1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
3 ! Check OpenMP clause validity for NONTEMPORAL clause
7 integer, allocatable
:: a(:)
11 !$omp simd nontemporal(a)
17 !$omp parallel do simd nontemporal(a)
21 !$omp end parallel do simd
23 !$omp parallel do simd nontemporal(a)
27 !$omp end parallel do simd
29 !ERROR: NONTEMPORAL clause is not allowed on the DO SIMD directive
30 !$omp do simd nontemporal(a)
36 !$omp taskloop simd nontemporal(a)
40 !$omp end taskloop simd
43 !$omp distribute parallel do simd nontemporal(a)
47 !$omp end distribute parallel do simd
51 !$omp distribute simd nontemporal(a)
55 !$omp end distribute simd
58 !$omp target parallel do simd nontemporal(a)
62 !$omp end target parallel do simd
64 !$omp target simd nontemporal(a)
70 !$omp teams distribute simd nontemporal(a)
74 !$omp end teams distribute simd
76 !$omp teams distribute parallel do simd nontemporal(a)
80 !$omp end teams distribute parallel do simd
82 !$omp target teams distribute parallel do simd nontemporal(a)
86 !$omp end target teams distribute parallel do simd
88 !$omp target teams distribute simd nontemporal(a)
92 !$omp end target teams distribute simd