Change these tests to feed the assembly files to opt directly, instead
[oota-llvm.git] / test / Transforms / ScalarRepl / not-a-vector.ll
1 ; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca
2 ; RUN: opt %s -scalarrepl | llvm-dis | not grep {7 x double}
3 ; RUN: opt %s -scalarrepl -instcombine | llvm-dis | grep {ret double %B}
4
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
9
10         %D = getelementptr [7 x i64]* %ARR, i32 0, i32 4
11         %E = bitcast i64* %D to double*
12         store double %B, double* %E
13
14         %F = getelementptr double* %C, i32 4
15         %G = load double* %F
16         ret double %G
17 }
18
19