Update Polly tests to handle explicitly typed gep changes in LLVM
[polly-mirror.git] / test / Isl / CodeGen / alignment.ll
blobfceb2c91bb37791b57c73f2b4e9d3649c8c8b15b
1 ; RUN: opt %loadPolly -polly-detect-unprofitable -polly-no-early-exit -polly-codegen-isl -S < %s | FileCheck %s
3 ; Check that the special alignment information is kept
5 ; CHECK: align 8
6 ; CHECK: align 8
8 ;    void jd(int *A) {
9 ;      for (int i = 0; i < 1024; i += 2)
10 ;        A[i] = i;
11 ;    }
13 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
15 define void @jd(i32* %A) {
16 entry:
17   br label %for.cond
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, i32* %A, i64 %indvars.iv
26   %tmp = trunc i64 %indvars.iv to i32
27   store i32 %tmp, i32* %arrayidx, align 8
28   br label %for.inc
30 for.inc:                                          ; preds = %for.body
31   %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
32   br label %for.cond
34 for.end:                                          ; preds = %for.cond
35   ret void