| 1 | // RUN: %clang_cc1 -verify -fopenmp -ast-print %s | FileCheck %s |
| 2 | // RUN: %clang_cc1 -fopenmp -emit-pch -o %t %s |
| 3 | // RUN: %clang_cc1 -fopenmp -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s |
| 4 | |
| 5 | // RUN: %clang_cc1 -verify -fopenmp-simd -ast-print %s | FileCheck %s |
| 6 | // RUN: %clang_cc1 -fopenmp-simd -emit-pch -o %t %s |
| 7 | // RUN: %clang_cc1 -fopenmp-simd -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s |
| 8 | // expected-no-diagnostics |
| 9 | |
| 10 | #ifndef HEADER |
| 11 | #define HEADER |
| 12 | |
| 13 | #pragma omp declare simd aligned(b : 64) |
| 14 | #pragma omp declare simd simdlen(32) aligned(d, b) |
| 15 | #pragma omp declare simd inbranch, uniform(d) linear(val(s1, s2) : 32) |
| 16 | #pragma omp declare simd notinbranch simdlen(2), uniform(s1, s2) linear(d: s1) |
| 17 | void add_1(float *d, int s1, float *s2, double b[]) __attribute__((cold)); |
| 18 | |
| 19 | // CHECK: #pragma omp declare simd notinbranch simdlen(2) uniform(s1, s2) linear(val(d): s1){{$}} |
| 20 | // CHECK-NEXT: #pragma omp declare simd inbranch uniform(d) linear(val(s1): 32) linear(val(s2): 32){{$}} |
| 21 | // CHECK-NEXT: #pragma omp declare simd simdlen(32) aligned(d) aligned(b){{$}} |
| 22 | // CHECK-NEXT: #pragma omp declare simd aligned(b: 64){{$}} |
| 23 | // CHECK-NEXT: void add_1(float *d, int s1, float *s2, double b[]) __attribute__((cold)) |
| 24 | |
| 25 | #endif |
| 26 | |