1 ; RUN: opt %loadNPMPolly -polly-pattern-matching-based-opts=true \
2 ; RUN: -polly-target-throughput-vector-fma=1 \
3 ; RUN: -polly-target-latency-vector-fma=8 \
4 ; RUN: -polly-target-1st-cache-level-associativity=8 \
5 ; RUN: -polly-target-2nd-cache-level-associativity=8 \
6 ; RUN: -polly-target-1st-cache-level-size=32768 \
7 ; RUN: -polly-target-vector-register-bitwidth=256 \
8 ; RUN: -polly-target-2nd-cache-level-size=262144 \
9 ; RUN: -passes=polly-opt-isl -disable-output < %s
11 ; Test whether isolation works as expected.
13 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
14 target triple = "x86_64-unknown-linux-gnu"
16 define internal void @kernel_gemm(i32 %ni, i32 %nj, i32 %nk, i8 signext %alpha, i8 signext %beta, ptr %C, ptr %A, ptr %B) {
20 entry.split: ; preds = %entry
23 for.body: ; preds = %for.inc23, %entry.split
24 %indvars.iv45 = phi i64 [ 0, %entry.split ], [ %indvars.iv.next46, %for.inc23 ]
27 for.body3: ; preds = %for.inc20, %for.body
28 %indvars.iv42 = phi i64 [ 0, %for.body ], [ %indvars.iv.next43, %for.inc20 ]
31 for.body6: ; preds = %for.body6, %for.body3
32 %indvars.iv = phi i64 [ 0, %for.body3 ], [ %indvars.iv.next, %for.body6 ]
33 %arrayidx8 = getelementptr inbounds [1020 x i8], ptr %A, i64 %indvars.iv45, i64 %indvars.iv
34 %tmp = load i8, ptr %arrayidx8, align 1
35 %arrayidx12 = getelementptr inbounds [1020 x i8], ptr %B, i64 %indvars.iv, i64 %indvars.iv42
36 %tmp1 = load i8, ptr %arrayidx12, align 1
37 %mul = mul i8 %tmp1, %tmp
38 %arrayidx17 = getelementptr inbounds [1020 x i8], ptr %C, i64 %indvars.iv45, i64 %indvars.iv42
39 %tmp2 = load i8, ptr %arrayidx17, align 1
40 %add = add i8 %mul, %tmp2
41 store i8 %add, ptr %arrayidx17, align 1
42 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
43 %exitcond = icmp ne i64 %indvars.iv.next, 1020
44 br i1 %exitcond, label %for.body6, label %for.inc20
46 for.inc20: ; preds = %for.body6
47 %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
48 %exitcond44 = icmp ne i64 %indvars.iv.next43, 1020
49 br i1 %exitcond44, label %for.body3, label %for.inc23
51 for.inc23: ; preds = %for.inc20
52 %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
53 %exitcond47 = icmp ne i64 %indvars.iv.next46, 1020
54 br i1 %exitcond47, label %for.body, label %for.end25
56 for.end25: ; preds = %for.inc23