1 ; RUN: opt %loadPolly -polly-print-ast -disable-output < %s \
2 ; RUN: -polly-invariant-load-hoisting \
5 ; CHECK: if (1 && 1 && (&MemRef_X[1] <= &MemRef_BaseA[0] || &MemRef_BaseA[1024] <= &MemRef_X[0]) && (&MemRef_X[1] <= &MemRef_BaseB[0] || &MemRef_BaseB[1024] <= &MemRef_X[0]))
7 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
8 target triple = "x86_64-unknown-linux-gnu"
10 define void @foo(ptr nocapture readonly %X) {
18 %i.011 = phi i64 [ 0, %entry ], [ %inc, %for.body ]
19 %conv = sitofp i64 %i.011 to float
20 %BaseA = load ptr, ptr %X, align 8
21 %BaseB = load ptr, ptr %X, align 8
22 %arrayidx = getelementptr inbounds float, ptr %BaseA, i64 %i.011
23 %A = load float, ptr %arrayidx, align 4
24 %add = fadd float %A, %conv
25 store float %add, ptr %arrayidx, align 4
26 %arrayidxB = getelementptr inbounds float, ptr %BaseB, i64 %i.011
27 %B = load float, ptr %arrayidxB, align 4
28 %addB = fadd float %B, %conv
29 store float %addB, ptr %arrayidxB, align 4
30 %inc = add nuw nsw i64 %i.011, 1
31 %exitcond = icmp eq i64 %inc, 1024
32 br i1 %exitcond, label %for.cond.cleanup, label %for.body