1 ; RUN: opt < %s -disable-output "-passes=print<da>" -aa-pipeline=basic-aa 2>&1 \
5 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
6 target triple = "x86_64-apple-macosx10.6.0"
12 define void @z0(ptr %A, ptr %B, i64 %n) nounwind uwtable ssp {
15 %arrayidx = getelementptr inbounds i32, ptr %A, i64 %add
16 store i32 0, ptr %arrayidx, align 4
18 ; CHECK: da analyze - none!
19 ; CHECK: da analyze - consistent flow [|<]!
20 ; CHECK: da analyze - confused!
21 ; CHECK: da analyze - none!
22 ; CHECK: da analyze - confused!
23 ; CHECK: da analyze - none!
26 %arrayidx2 = getelementptr inbounds i32, ptr %A, i64 %add1
27 %0 = load i32, ptr %arrayidx2, align 4
28 store i32 %0, ptr %B, align 4
36 define void @z1(ptr %A, ptr %B, i64 %n) nounwind uwtable ssp {
38 %arrayidx = getelementptr inbounds i32, ptr %A, i64 %n
39 store i32 0, ptr %arrayidx, align 4
41 ; CHECK: da analyze - none!
42 ; CHECK: da analyze - none!
43 ; CHECK: da analyze - confused!
44 ; CHECK: da analyze - none!
45 ; CHECK: da analyze - confused!
46 ; CHECK: da analyze - none!
49 %arrayidx1 = getelementptr inbounds i32, ptr %A, i64 %add
50 %0 = load i32, ptr %arrayidx1, align 4
51 store i32 %0, ptr %B, align 4
59 define void @z2(ptr %A, ptr %B, i64 %n, i64 %m) nounwind uwtable ssp {
61 %arrayidx = getelementptr inbounds i32, ptr %A, i64 %n
62 store i32 0, ptr %arrayidx, align 4
64 ; CHECK: da analyze - none!
65 ; CHECK: da analyze - flow [|<]!
66 ; CHECK: da analyze - confused!
67 ; CHECK: da analyze - none!
68 ; CHECK: da analyze - confused!
69 ; CHECK: da analyze - none!
71 %arrayidx1 = getelementptr inbounds i32, ptr %A, i64 %m
72 %0 = load i32, ptr %arrayidx1, align 4
73 store i32 %0, ptr %B, align 4