1 ; RUN: opt %loadNPMPolly -passes=polly-codegen -S < %s | FileCheck %s
3 ; Check that the special alignment information is kept
9 ; for (int i = 0; i < 1024; i += 2)
13 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
15 define void @jd(ptr %A) {
19 for.cond: ; preds = %for.inc, %entry
20 %indvars.iv = phi i64 [ %indvars.iv.next, %for.inc ], [ 0, %entry ]
21 %cmp = icmp slt i64 %indvars.iv, 1024
22 br i1 %cmp, label %for.body, label %for.end
24 for.body: ; preds = %for.cond
25 %arrayidx = getelementptr inbounds i32, ptr %A, i64 %indvars.iv
26 %tmp = trunc i64 %indvars.iv to i32
27 store i32 %tmp, ptr %arrayidx, align 8
30 for.inc: ; preds = %for.body
31 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
34 for.end: ; preds = %for.cond