summaryrefslogtreecommitdiffstats
path: root/test/Misc/backend-optimization-failure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Misc/backend-optimization-failure.cpp')
-rw-r--r--test/Misc/backend-optimization-failure.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Misc/backend-optimization-failure.cpp b/test/Misc/backend-optimization-failure.cpp
index 2ee42b8..3e40712 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)
- /* expected-warning {{loop not vectorized: failed explicitly specified loop vectorization}} */ for (int i = 0; i < Length; i++) {
- switch (A[i]) {
+ for (int i = 0; i < Length; i++) {
+/* expected-warning {{loop not vectorized: failed explicitly specified loop vectorization}} */ switch (A[i]) {
case 0:
B[i] = 1;
break;
OpenPOWER on IntegriCloud