1 ; RUN: opt %loadPolly -polly-codegen-ppcg -polly-acc-dump-code -disable-output %s
5 ; REQUIRES: pollyacc,nvptx
7 ; This fails today with "LowerFormalArguments didn't emit the correct number of
10 ; void foo(i3000 A[], i3000 b) {
11 ; for (long i = 0; i < 1024; i++)
15 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
17 define void @i3000(i3000* %A, i3000 %b) {
21 bb1: ; preds = %bb5, %bb
22 %i.0 = phi i3000 [ 0, %bb ], [ %tmp6, %bb5 ]
23 %exitcond = icmp ne i3000 %i.0, 1024
24 br i1 %exitcond, label %bb2, label %bb7
27 %tmp = getelementptr inbounds i3000, i3000* %A, i3000 %i.0
28 %tmp3 = load i3000, i3000* %tmp, align 4
29 %tmp4 = add i3000 %tmp3, %b
30 store i3000 %tmp4, i3000* %tmp, align 4
34 %tmp6 = add nuw nsw i3000 %i.0, 1