15 lines · c
1// RUN: %clang_cc1 -verify -fopenmp -x c -emit-llvm %s -triple x86_64-unknown-linux -o - -femit-all-decls -disable-llvm-passes | FileCheck %s2// RUN: %clang_cc1 -verify -x c -emit-llvm %s -triple x86_64-unknown-linux -o - -femit-all-decls -disable-llvm-passes | FileCheck %s3// expected-no-diagnostics4 5// CHECK: !{{[0-9]+}} = !{!"llvm.loop.vectorize.width", i32 1}6void sub(double *restrict a, double *restrict b, int n) {7 int i;8 9#pragma omp parallel for10#pragma clang loop vectorize(disable)11 for (i = 0; i < n; i++) {12 a[i] = a[i] + b[i];13 }14}15