• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt %loadPolly -polly-codegen-ppcg -polly-acc-dump-code -disable-output %s
2
3; XFAIL: *
4
5; REQUIRES: pollyacc,nvptx
6
7; This fails today with "LowerFormalArguments didn't emit the correct number of
8;                        values!"
9
10;    void foo(i128 A[], i128 b) {
11;      for (long i = 0; i < 1024; i++)
12;        A[i] += b;
13;    }
14;
15target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
16
17define void @i128(i128* %A, i128 %b) {
18bb:
19  br label %bb1
20
21bb1:                                              ; preds = %bb5, %bb
22  %i.0 = phi i128 [ 0, %bb ], [ %tmp6, %bb5 ]
23  %exitcond = icmp ne i128 %i.0, 1024
24  br i1 %exitcond, label %bb2, label %bb7
25
26bb2:                                              ; preds = %bb1
27  %tmp = getelementptr inbounds i128, i128* %A, i128 %i.0
28  %tmp3 = load i128, i128* %tmp, align 4
29  %tmp4 = add i128 %tmp3, %b
30  store i128 %tmp4, i128* %tmp, align 4
31  br label %bb5
32
33bb5:                                              ; preds = %bb2
34  %tmp6 = add nuw nsw i128 %i.0, 1
35  br label %bb1
36
37bb7:                                              ; preds = %bb1
38  ret void
39}
40