1 ; RUN: opt %loadPolly -polly-codegen-ppcg -polly-acc-dump-code -disable-output %s
3 ; REQUIRES: pollyacc,nvptx
5 ; This fails today with "unexpected type" in the LLVM PTX backend.
7 ; void foo(half A[], half b) {
8 ; for (long i = 0; i < 1024; i++)
12 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
14 define void @half(half* %A, half %b) {
18 bb1: ; preds = %bb5, %bb
19 %i.0 = phi i64 [ 0, %bb ], [ %tmp6, %bb5 ]
20 %exitcond = icmp ne i64 %i.0, 1024
21 br i1 %exitcond, label %bb2, label %bb7
24 %tmp = getelementptr inbounds half, half* %A, i64 %i.0
25 %tmp3 = load half, half* %tmp, align 4
26 %tmp4 = fadd half %tmp3, %b
27 store half %tmp4, half* %tmp, align 4
31 %tmp6 = add nuw nsw i64 %i.0, 1