1 ; RUN: opt %loadPolly -polly-print-scops -disable-output < %s | FileCheck %s
3 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"
5 define void @f(ptr nocapture %a) nounwind {
10 %i = phi i64 [ 0, %entry ], [ %i.inc, %for.j ]
11 %i.inc = add nsw i64 %i, 1
12 %exitcond.i = icmp sge i64 %i.inc, 2048
13 br i1 %exitcond.i, label %return, label %for.j
16 %j = phi i64 [ 0, %for.i ], [ %j.inc, %body ]
17 %j.inc = add nsw i64 %j, 1
18 %exitcond.j = icmp slt i64 %j.inc, 1024
19 br i1 %exitcond.j, label %body, label %for.i
22 %scevgep = getelementptr i64, ptr %a, i64 %j
23 store i64 %j, ptr %scevgep
32 ; CHECK-NEXT: Stmt_body
33 ; CHECK-NEXT: Domain :=
34 ; CHECK-NEXT: { Stmt_body[i0, i1] : 0 <= i0 <= 2046 and 0 <= i1 <= 1022 };
35 ; CHECK-NEXT: Schedule :=
36 ; CHECK-NEXT: { Stmt_body[i0, i1] -> [i0, i1] };
37 ; CHECK-NEXT: MustWriteAccess := [Reduction Type: NONE] [Scalar: 0]
38 ; CHECK-NEXT: { Stmt_body[i0, i1] -> MemRef_a[i1] };