• 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 "type mismatch between callee prototype and arguments"
8
9;    void foo(fp128 A[], fp128 b) {
10;      for (long i = 0; i < 1024; i++)
11;        A[i] += b;
12;    }
13;
14target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
15
16define void @ppc_fp128(ppc_fp128* %A, ppc_fp128 %b) {
17bb:
18  br label %bb1
19
20bb1:                                              ; preds = %bb5, %bb
21  %i.0 = phi i64 [ 0, %bb ], [ %tmp6, %bb5 ]
22  %exitcond = icmp ne i64 %i.0, 1024
23  br i1 %exitcond, label %bb2, label %bb7
24
25bb2:                                              ; preds = %bb1
26  %tmp = getelementptr inbounds ppc_fp128, ppc_fp128* %A, i64 %i.0
27  %tmp3 = load ppc_fp128, ppc_fp128* %tmp, align 4
28  %tmp4 = fadd ppc_fp128 %tmp3, %b
29  store ppc_fp128 %tmp4, ppc_fp128* %tmp, align 4
30  br label %bb5
31
32bb5:                                              ; preds = %bb2
33  %tmp6 = add nuw nsw i64 %i.0, 1
34  br label %bb1
35
36bb7:                                              ; preds = %bb1
37  ret void
38}
39