1; RUN: opt %loadPolly -polly-scops -analyze < %s 2>&1 | not FileCheck %s
2
3;#define TYPE float
4;#define NUM 4
5;
6;TYPE A[NUM];
7;TYPE B[NUM];
8;TYPE C[NUM];
9;
10;void vector_multiply(void) {
11;	int i;
12;	for (i = 0; i < NUM; i++) {
13;		A[i] = B[i] * C[i];
14;	}
15;}
16
17target 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"
18
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
22
23define void @vector_multiply() nounwind {
24bb:
25  br label %bb3
26
27bb3:                                              ; 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
34
35bb4:                                              ; preds = %bb3
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
40  br label %bb7
41
42bb7:                                              ; preds = %bb4
43  %indvar.next = add i64 %indvar, 1
44  br label %bb3
45
46bb8:                                              ; preds = %bb3
47  ret void
48}
49
50; Match any reduction type except "[Reduction Type: NONE]"
51; CHECK:     [Reduction Type: {{[^N].*}}]
52