1; RUN: opt %loadPolly -polly-codegen \
2; RUN:     -S < %s | FileCheck %s
3target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
4
5; CHECK: sext i32 %indvar.init to i64
6
7define void @foo(double* %A, double* %B, i32 %p, i32 %indvar.init) {
8preheader:
9  br label %for.body
10
11for.body:
12  %indvar = phi i32 [ %indvar.next, %for.body ], [ %indvar.init, %preheader ]
13  %B.ptr0 = getelementptr inbounds double, double* %B, i64 0
14  %tmp1 = load double, double* %B.ptr0
15  %A.ptr = getelementptr inbounds double, double* %A, i64 0
16  store double undef, double* %A.ptr
17  %idxprom1329 = sext i32 %indvar to i64
18  %B.ptr1 = getelementptr inbounds double, double* %B, i64 %idxprom1329
19  store double 0.000000e+00, double* %B.ptr1
20  %indvar.next = add nsw i32 %indvar, %p
21  br i1 false, label %for.body, label %exit
22
23exit:
24  ret void
25}
26