blob: 5cb24084e535b564b37053ce7dbc84c5ff7401a0 [file] [log] [blame]
Alexey Bataev587e1de2016-03-30 10:43:55 +00001// 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// expected-no-diagnostics
5
6#ifndef HEADER
7#define HEADER
8
Alexey Bataevd93d3762016-04-12 09:35:56 +00009#pragma omp declare simd aligned(b : 64)
10#pragma omp declare simd simdlen(32) aligned(d, s1)
Alexey Bataeve48a5fc2016-04-12 05:28:34 +000011#pragma omp declare simd inbranch, uniform(d)
12#pragma omp declare simd notinbranch simdlen(2), uniform(s1, s2)
Alexey Bataevd93d3762016-04-12 09:35:56 +000013void add_1(float *d, float *s1, float *s2, double b[]) __attribute__((cold));
Alexey Bataev587e1de2016-03-30 10:43:55 +000014
Alexey Bataeve48a5fc2016-04-12 05:28:34 +000015// CHECK: #pragma omp declare simd notinbranch simdlen(2) uniform(s1, s2)
16// CHECK-NEXT: #pragma omp declare simd inbranch uniform(d)
Alexey Bataevd93d3762016-04-12 09:35:56 +000017// CHECK-NEXT: #pragma omp declare simd simdlen(32) aligned(d) aligned(s1)
18// CHECK-NEXT: #pragma omp declare simd aligned(b: 64)
19// CHECK-NEXT: void add_1(float *d, float *s1, float *s2, double b[]) __attribute__((cold))
Alexey Bataev587e1de2016-03-30 10:43:55 +000020
21#endif