1 ; RUN: opt < %s -scalarrepl -S | not grep alloca
2 ; RUN: opt < %s -scalarrepl -S | not grep {7 x double}
3 ; RUN: opt < %s -scalarrepl -instcombine -S | grep {ret double %B}
5 define double @test(double %A, double %B) {
6 %ARR = alloca [7 x i64]
7 %C = bitcast [7 x i64]* %ARR to double*
8 store double %A, double* %C
10 %D = getelementptr [7 x i64]* %ARR, i32 0, i32 4
11 %E = bitcast i64* %D to double*
12 store double %B, double* %E
14 %F = getelementptr double* %C, i32 4