Update Polly tests to handle explicitly typed gep changes in LLVM
[polly-mirror.git] / test / TempScop / nested-loops.ll
blobfefae9d2608229f4ad2d16733c3af4669229d3e2
1 ; RUN: opt %loadPolly -polly-detect-unprofitable -polly-scops -analyze < %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"
4 target triple = "x86_64-unknown-linux-gnu"
6 define void @f(i64* nocapture %a) nounwind {
7 entry:
8   br label %for.i
10 for.i:
11   %i = phi i64 [ 0, %entry ], [ %i.inc, %for.j ]
12   %i.inc = add nsw i64 %i, 1
13   %exitcond.i = icmp sge i64 %i.inc, 2048
14   br i1 %exitcond.i, label %return, label %for.j
16 for.j:
17   %j = phi i64 [ 0, %for.i ], [ %j.inc, %body ]
18   %j.inc = add nsw i64 %j, 1
19   %exitcond.j = icmp slt i64 %j.inc, 1024
20   br i1 %exitcond.j, label %body, label %for.i
22 body:
23   %scevgep = getelementptr i64, i64* %a, i64 %j
24   store i64 %j, i64* %scevgep
25   br label %for.j
27 return:
28   ret void
31 ; CHECK: body
32 ; CHECK:        Domain :=
33 ; CHECK:           { Stmt_body[i0, i1] : i0 >= 0 and i0 <= 2046 and i1 >= 0 and i1 <= 1022 }