diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-15 22:31:35 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-15 22:31:35 +0000 |
commit | 30d791273d07fac9c0c1641a0731191bca6e8606 (patch) | |
tree | 6c840e234e0c97d0adf033bb41f667a5f5b528b6 /test/Misc/backend-optimization-failure.cpp | |
parent | 9f4dbff6669c8037f3b036bcf580d14f1a4f12a5 (diff) |
Diffstat (limited to 'test/Misc/backend-optimization-failure.cpp')
-rw-r--r-- | test/Misc/backend-optimization-failure.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Misc/backend-optimization-failure.cpp b/test/Misc/backend-optimization-failure.cpp index 1b79fb31d1f9b..2ee42b88a1a66 100644 --- a/test/Misc/backend-optimization-failure.cpp +++ b/test/Misc/backend-optimization-failure.cpp @@ -6,8 +6,8 @@ void test_switch(int *A, int *B, int Length) { #pragma clang loop vectorize(enable) unroll(disable) - for (int i = 0; i < Length; i++) { - /* expected-warning {{loop not vectorized: failed explicitly specified loop vectorization}} */ switch (A[i]) { + /* expected-warning {{loop not vectorized: failed explicitly specified loop vectorization}} */ for (int i = 0; i < Length; i++) { + switch (A[i]) { case 0: B[i] = 1; break; |