summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/simd_aligned_messages.cpp
diff options
context:
space:
mode:
authorAlexander Musman <alexander.musman@gmail.com>2014-09-30 05:29:28 +0000
committerAlexander Musman <alexander.musman@gmail.com>2014-09-30 05:29:28 +0000
commit09184fedc0491328ff287d7049578c6ca1443b9b (patch)
tree06251a4147a5d7c305bf705bbb3bc69ef1a1fcf4 /clang/test/OpenMP/simd_aligned_messages.cpp
parentaab5d7bd33ef6047c0037c5e0f01029c35924bf1 (diff)
downloadbcm5719-llvm-09184fedc0491328ff287d7049578c6ca1443b9b.tar.gz
bcm5719-llvm-09184fedc0491328ff287d7049578c6ca1443b9b.zip
[OPENMP] Codegen of the ‘aligned’ clause for the ‘omp simd’ directive.
Differential Revision: http://reviews.llvm.org/D5499 llvm-svn: 218660
Diffstat (limited to 'clang/test/OpenMP/simd_aligned_messages.cpp')
-rw-r--r--clang/test/OpenMP/simd_aligned_messages.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/OpenMP/simd_aligned_messages.cpp b/clang/test/OpenMP/simd_aligned_messages.cpp
index 84cf40c1731..dfa6b541c90 100644
--- a/clang/test/OpenMP/simd_aligned_messages.cpp
+++ b/clang/test/OpenMP/simd_aligned_messages.cpp
@@ -39,6 +39,7 @@ void test_aligned_colons(int *&rp)
// expected-error@+1 {{expected variable name}}
#pragma omp simd aligned(B::bfoo())
for (int i = 0; i < 10; ++i) ;
+ // expected-warning@+1 {{aligned clause will be ignored because the requested alignment is not a power of 2}}
#pragma omp simd aligned(B::ib,B:C1+C2)
for (int i = 0; i < 10; ++i) ;
}
@@ -122,7 +123,7 @@ template<class I, class C> int foomain(I argc, C **argv) {
for (I k = 0; k < argc; ++k) ++k;
#pragma omp simd aligned (argc > 0 ? argv[1] : argv[2]) // expected-error {{expected variable name}}
for (I k = 0; k < argc; ++k) ++k;
- #pragma omp simd aligned (argc : 5)
+ #pragma omp simd aligned (argc : 5) // expected-warning {{aligned clause will be ignored because the requested alignment is not a power of 2}}
for (I k = 0; k < argc; ++k) ++k;
#pragma omp simd aligned (S1) // expected-error {{'S1' does not refer to a value}}
for (I k = 0; k < argc; ++k) ++k;
OpenPOWER on IntegriCloud