Update Polly tests to handle explicitly typed gep changes in LLVM
[polly-mirror.git] / test / Isl / CodeGen / scop_never_executed_runtime_check_location.ll
bloba13a475ee6d2c0b9a44271d1977afbeeb3e590f6
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 ; Verify that we generate the runtime check code after the conditional branch
5 ; in the SCoP region entering block (here %entry).
7 ; CHECK: entry:
8 ; CHECK: zext i32 %n to i64
9 ; CHECK: br i1 false
11 ; CHECK: %[[T0:[._a-zA-Z0-9]]] = zext i32 %n to i64
12 ; CHECK: %[[T1:[._a-zA-Z0-9]]] = icmp sge i64 %[[T0]], 1
14 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
15 target triple = "x86_64-unknown-linux-gnu"
17 define void @init_array(i32 %n, double* %data) {
18 entry:
19   %0 = zext i32 %n to i64
20   br i1 false, label %for.end10, label %for.body4
22 for.body4:                                        ; preds = %for.body4, %entry
23   %indvar1 = phi i64 [ %indvar.next2, %for.body4 ], [ 0, %entry ]
24   %.moved.to.for.body4 = mul i64 %0, %indvar1
25   %1 = add i64 %.moved.to.for.body4, 0
26   %arrayidx7 = getelementptr double, double* %data, i64 %1
27   store double undef, double* %arrayidx7, align 8
28   %indvar.next2 = add i64 %indvar1, 1
29   br i1 false, label %for.body4, label %for.end10
31 for.end10:                                        ; preds = %for.body4
32   ret void