blob: 3adfbf9d84973ecd6254dd9b1e23971e7fa1b580 [file] [log] [blame]
Chris Lattnerafa38572004-03-07 22:52:41 +00001; RUN: llvm-as < %s | opt -argpromotion -instcombine | llvm-dis | not grep load
2
3%G1 = constant int 0
4%G2 = constant int* %G1
5
6implementation
7
8internal int %test(int **%X) {
9 %Y = load int** %X
10 %X = load int* %Y
11 ret int %X
12}
13
14int %caller(int** %P) {
15 %X = call int %test(int** %G2)
16 ret int %X
17}