1 ; RUN: opt %loadPolly -polly-import-jscop -polly-import-jscop-postfix=transformed -polly-codegen -S < %s | FileCheck %s
3 ; Partial write of an array access.
5 ; for (int j = 0; j < n; j += 1)
9 define void @partial_write_array(i32 %n, ptr noalias nonnull %A) {
14 %j = phi i32 [0, %entry], [%j.inc, %inc]
15 %j.cmp = icmp slt i32 %j, %n
16 br i1 %j.cmp, label %body, label %exit
19 store double 42.0, ptr %A
23 %j.inc = add nuw nsw i32 %j, 1
34 ; CHECK: polly.stmt.body:
35 ; CHECK-NEXT: %1 = icmp sge i64 %polly.indvar, 5
36 ; CHECK-NEXT: %polly.Stmt_body_Write0.cond = icmp ne i1 %1, false
37 ; CHECK-NEXT: br i1 %polly.Stmt_body_Write0.cond, label %polly.stmt.body.Stmt_body_Write0.partial, label %polly.stmt.body.cont
39 ; CHECK: polly.stmt.body.Stmt_body_Write0.partial:
40 ; CHECK-NEXT: %polly.access.A = getelementptr double, ptr %A, i64 0
41 ; CHECK-NEXT: store double 4.200000e+01, ptr %polly.access.A, align 8, !alias.scope !0, !noalias !3
42 ; CHECK-NEXT: br label %polly.stmt.body.cont
44 ; CHECK: polly.stmt.body.cont: