1 ; RUN: opt < %s -instcombine -S | grep {align 16} | count 1
3 ; Instcombine should be able to prove vector alignment in the
4 ; presence of a few mild address computation tricks.
6 define void @foo(i8* %b, i64 %n, i64 %u, i64 %y) nounwind {
8 %c = ptrtoint i8* %b to i64
10 %e = inttoptr i64 %d to double*
13 %t1421 = icmp eq i64 %n, 0
14 br i1 %t1421, label %return, label %bb
17 %i = phi i64 [ %indvar.next, %bb ], [ 20, %entry ]
20 %t8 = getelementptr double* %e, i64 %h
21 %p = bitcast double* %t8 to <2 x double>*
22 store <2 x double><double 0.0, double 0.0>, <2 x double>* %p, align 8
23 %indvar.next = add i64 %i, 1
24 %exitcond = icmp eq i64 %indvar.next, %n
25 br i1 %exitcond, label %return, label %bb