1 ; RUN: llc < %s -mtriple=i686--
4 @data = external global [400 x i64] ; <[400 x i64]*> [#uses=5]
6 define void @foo(double* noalias, double* noalias) {
7 load i64, i64* getelementptr ([400 x i64], [400 x i64]* @data, i32 0, i64 200), align 4 ; <i64>:3 [#uses=1]
8 load i64, i64* getelementptr ([400 x i64], [400 x i64]* @data, i32 0, i64 199), align 4 ; <i64>:4 [#uses=1]
9 load i64, i64* getelementptr ([400 x i64], [400 x i64]* @data, i32 0, i64 198), align 4 ; <i64>:5 [#uses=2]
10 load i64, i64* getelementptr ([400 x i64], [400 x i64]* @data, i32 0, i64 197), align 4 ; <i64>:6 [#uses=1]
11 br i1 false, label %28, label %7
13 ; <label>:7 ; preds = %2
14 load double*, double** getelementptr (double*, double** bitcast ([400 x i64]* @data to double**), i64 180), align 8 ; <double*>:8 [#uses=1]
15 bitcast double* %8 to double* ; <double*>:9 [#uses=1]
16 ptrtoint double* %9 to i64 ; <i64>:10 [#uses=1]
17 mul i64 %4, %3 ; <i64>:11 [#uses=1]
18 add i64 0, %11 ; <i64>:12 [#uses=1]
19 shl i64 %12, 3 ; <i64>:13 [#uses=1]
20 sub i64 %10, %13 ; <i64>:14 [#uses=1]
21 add i64 %5, 0 ; <i64>:15 [#uses=1]
22 shl i64 %15, 3 ; <i64>:16 [#uses=1]
23 bitcast i64 %16 to i64 ; <i64>:17 [#uses=1]
24 mul i64 %6, %5 ; <i64>:18 [#uses=1]
25 add i64 0, %18 ; <i64>:19 [#uses=1]
26 shl i64 %19, 3 ; <i64>:20 [#uses=1]
27 sub i64 %17, %20 ; <i64>:21 [#uses=1]
28 add i64 0, %21 ; <i64>:22 [#uses=1]
29 add i64 0, %14 ; <i64>:23 [#uses=1]
32 ; <label>:24 ; preds = %24, %7
33 phi i64 [ 0, %24 ], [ %22, %7 ] ; <i64>:25 [#uses=1]
34 phi i64 [ 0, %24 ], [ %23, %7 ] ; <i64>:26 [#uses=0]
35 add i64 %25, 24 ; <i64>:27 [#uses=0]
38 ; <label>:28 ; preds = %2