blob: a618db53fff3d64eb404e9f8ef7ac96a00ff015b [file] [log] [blame]
Nadav Rotem0b37f142012-12-30 07:47:00 +00001; RUN: opt < %s -loop-vectorize -force-vector-width=4
2
3target 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"
4target triple = "x86_64-unknown-linux-gnu"
5
6%type1 = type { %type2 }
7%type2 = type { [0 x i8*], i8**, i32, i32, i32 }
8
9define void @test() nounwind uwtable align 2 {
10 br label %for.body.lr.ph.i.i.i
11
12for.body.lr.ph.i.i.i:
13 br label %for.body.i.i.i
14
15for.body.i.i.i:
16 %indvars.iv = phi i64 [ %indvars.iv.next, %for.inc.i.i.i ], [ 0, %for.body.lr.ph.i.i.i ]
17 br label %for.inc.i.i.i
18
19for.inc.i.i.i:
20 %indvars.iv.next = add i64 %indvars.iv, 1
21 %lftr.wideiv = trunc i64 %indvars.iv.next to i32
22 %exitcond = icmp ne i32 %lftr.wideiv, undef
23 br i1 %exitcond, label %for.body.i.i.i, label %for.end.i.i.i
24
25for.end.i.i.i:
26 %lcssa = phi %type1* [ undef, %for.inc.i.i.i ]
27 unreachable
28}
29