summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/for_simd_ast_print.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2015-12-30 12:06:23 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2015-12-30 12:06:23 +0000
commit113438cd5cc37fbd0474cb75e55c09beafd6126d (patch)
tree595f2f40523f09b76876a32a9f1a192d5dbdc46c /clang/test/OpenMP/for_simd_ast_print.cpp
parent57286644f7c2010299f1093a95fa60934fc08dd2 (diff)
downloadbcm5719-llvm-113438cd5cc37fbd0474cb75e55c09beafd6126d.tar.gz
bcm5719-llvm-113438cd5cc37fbd0474cb75e55c09beafd6126d.zip
[OPENMP 4.5] Allow 'ordered' clause on 'loop simd' constructs.
OpenMP 4.5 allows to use 'ordered' clause without parameter on 'loop simd' constructs. llvm-svn: 256639
Diffstat (limited to 'clang/test/OpenMP/for_simd_ast_print.cpp')
-rw-r--r--clang/test/OpenMP/for_simd_ast_print.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/OpenMP/for_simd_ast_print.cpp b/clang/test/OpenMP/for_simd_ast_print.cpp
index 725c727e261..d4b13ba1998 100644
--- a/clang/test/OpenMP/for_simd_ast_print.cpp
+++ b/clang/test/OpenMP/for_simd_ast_print.cpp
@@ -14,8 +14,8 @@ template<class T, class N> T reduct(T* arr, N num) {
N myind;
T sum = (T)0;
// CHECK: T sum = (T)0;
-#pragma omp for simd private(myind, g_ind), linear(ind), aligned(arr)
-// CHECK-NEXT: #pragma omp for simd private(myind,g_ind) linear(ind) aligned(arr)
+#pragma omp for simd private(myind, g_ind), linear(ind), aligned(arr) ordered
+// CHECK-NEXT: #pragma omp for simd private(myind,g_ind) linear(ind) aligned(arr) ordered
for (i = 0; i < num; ++i) {
myind = ind;
T cur = arr[myind];
@@ -92,8 +92,8 @@ int main (int argc, char **argv) {
int k1=0,k2=0;
static int *a;
// CHECK: static int *a;
-#pragma omp for simd
-// CHECK-NEXT: #pragma omp for simd
+#pragma omp for simd ordered
+// CHECK-NEXT: #pragma omp for simd ordered
for (int i=0; i < 2; ++i)*a=2;
// CHECK-NEXT: for (int i = 0; i < 2; ++i)
// CHECK-NEXT: *a = 2;
OpenPOWER on IntegriCloud