1 // RUN: %clang_cc1 -triple x86_64 -target-cpu x86-64 -S -O1 -vectorize-loops -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK-ENABLE-VECT
2 // RUN: %clang_cc1 -triple x86_64 -target-cpu x86-64 -S -O1 -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK-DISABLE-VECT
3 // REQUIRES: x86-registered-target
5 // CHECK-ENABLE-VECT-LABEL: @for_test()
6 // CHECK-ENABLE-VECT: fmul <{{[0-9]+}} x double>
8 // CHECK-DISABLE-VECT-LABEL: @for_test()
9 // CHECK-DISABLE-VECT: fmul double
10 // CHECK-DISABLE-VECT-NOT: fmul <{{[0-9]+}} x double>
12 int printf(const char * restrict format
, ...);
15 double A
[1000], B
[1000];
17 for (int i
= 0; i
< L
; i
++) {
20 for (int i
= 0; i
< L
; i
++) {
23 printf("%lf %lf\n", A
[0], B
[0]);