1 ; RUN: opt %loadPolly -polly-scops -analyze < %s 2>&1 | not FileCheck %s
10 ;void vector_multiply(void) {
12 ; for (i = 0; i < NUM; i++) {
17 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
19 @B = common global [4 x float] zeroinitializer, align 16
20 @C = common global [4 x float] zeroinitializer, align 16
21 @A = common global [4 x float] zeroinitializer, align 16
23 define void @vector_multiply() nounwind {
27 bb3: ; preds = %bb7, %bb
28 %indvar = phi i64 [ %indvar.next, %bb7 ], [ 0, %bb ]
29 %scevgep = getelementptr [4 x float], [4 x float]* @A, i64 0, i64 %indvar
30 %scevgep1 = getelementptr [4 x float], [4 x float]* @C, i64 0, i64 %indvar
31 %scevgep2 = getelementptr [4 x float], [4 x float]* @B, i64 0, i64 %indvar
32 %exitcond = icmp ne i64 %indvar, 4
33 br i1 %exitcond, label %bb4, label %bb8
36 %tmp = load float, float* %scevgep2, align 4
37 %tmp5 = load float, float* %scevgep1, align 4
38 %tmp6 = fmul float %tmp, %tmp5
39 store float %tmp6, float* %scevgep, align 4
43 %indvar.next = add i64 %indvar, 1
50 ; Match any reduction type except "[Reduction Type: NONE]"
51 ; CHECK: [Reduction Type: {{[^N].*}}]