Update Polly tests to handle explicitly typed gep changes in LLVM
[polly-mirror.git] / test / Isl / CodeGen / run-time-condition.ll
blob9a306ab3266646c4eddb95a73edd9f718ee8697f
1 ; RUN: opt %loadPolly -polly-detect-unprofitable -polly-no-early-exit -basicaa -polly-codegen-isl -S < %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-n8:16:32:64-S128"
4 target triple = "x86_64-unknown-linux-gnu"
6 define void @run-time-condition(i16* noalias %A, i16* noalias %B) {
7 entry:
8   br label %for.cond
10 for.cond:                                         ; preds = %for.body, %entry
11   %indvar = phi i64 [ 0, %entry ], [ %inc, %for.body ]
12   %cmp = icmp slt i64 %indvar, 1024
13   br i1 %cmp, label %for.body, label %for.end
15 for.body:                                         ; preds = %for.cond
16   %arrayidx = getelementptr inbounds i16, i16* %B, i64 0
17   %load = load i16* %arrayidx
18   %add10 = add nsw i16 %load, 1
19   %arrayidx13 = getelementptr inbounds i16, i16* %A, i64 %indvar
20   store i16 %add10, i16* %arrayidx13, align 2
21   %inc = add nsw i64 %indvar, 1
22   br label %for.cond
24 for.end:                                          ; preds = %for.cond
25   ret void
28 ; The trivial case, no run-time checks required.
30 ; CHECK: polly.split_new_and_old:
31 ; CHECK:  br i1 true, label %polly.start, label %for.cond