[RISCV] Add shrinkwrap test cases showing gaps in current impl
[llvm-project.git] / clang / test / Frontend / optimization-remark-analysis.c
blob137d77f2847f7e483c444d823731fa98830bc58b
1 // RUN: %clang -O1 -fvectorize -target x86_64-unknown-unknown -emit-llvm -Rpass-analysis -S %s -o - 2>&1 | FileCheck %s --check-prefix=RPASS
2 // RUN: %clang -O1 -fvectorize -target x86_64-unknown-unknown -emit-llvm -S %s -o - 2>&1 | FileCheck %s
4 // RPASS: {{.*}}:12:5: remark: loop not vectorized: call instruction cannot be vectorized
5 // CHECK-NOT: remark: loop not vectorized
7 void bar(void);
9 void foo(int N) {
10 #pragma clang loop vectorize(enable)
11 for (int i = 0; i < N; i++) {
12 bar();