Update Polly tests to handle explicitly typed gep changes in LLVM
[polly-mirror.git] / test / Isl / CodeGen / run-time-condition-with-scev-parameters.ll
blobc40d7407e9716ce06cb780d049e5e4602fc3d534
1 ; RUN: opt %loadPolly -polly-detect-unprofitable -polly-no-early-exit -polly-codegen-isl -S -polly-delinearize < %s | FileCheck %s
2 ; RUN: opt %loadPolly -polly-detect-unprofitable -polly-no-early-exit -polly-codegen-isl -S -polly-delinearize < %s | FileCheck %s
4 ; CHECK: %1 = zext i32 %n to i64
5 ; CHECK-NEST: %2 = icmp sge i64 %1, 1
6 ; CHECK-NEST: br label %polly.split_new_and_old
7 ; CHECK: polly.split_new_and_old:
8 ; CHECK-NEXT: br i1 %2, label %polly.start, label %for.body4
11 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
12 target triple = "x86_64-unknown-linux-gnu"
14 define void @init_array(i32 %n, double* %data) {
15 entry:
16   %0 = zext i32 %n to i64
17   br label %for.body4
19 for.body4:                                        ; preds = %for.body4, %entry
20   %indvar1 = phi i64 [ %indvar.next2, %for.body4 ], [ 0, %entry ]
21   %.moved.to.for.body4 = mul i64 %0, %indvar1
22   %1 = add i64 %.moved.to.for.body4, 0
23   %arrayidx7 = getelementptr double, double* %data, i64 %1
24   store double undef, double* %arrayidx7, align 8
25   %indvar.next2 = add i64 %indvar1, 1
26   br i1 false, label %for.body4, label %for.end10
28 for.end10:                                        ; preds = %for.body4
29   ret void