Add the SCCP regression tests for APInt expressions. These test cases
[oota-llvm.git] / test / Transforms / SCCP / apint-bigint2.ll
1 ; RUN:  llvm-as < %s | opt -sccp | llvm-dis -o /dev/null -f &&
2 ; RUN:  llvm-as < %s | opt -sccp | llvm-dis | not grep load
3
4 @Y = constant [6 x i101] [ i101 12, i101 123456789000000, i101 -12,
5                            i101 -123456789000000, i101 0,i101 9123456789000000]
6
7 define i101 @array()
8 {
9 Head:
10    %A = getelementptr [6 x i101]* @Y, i32 0, i32 1
11    %B = load i101* %A
12    %D = and i101 %B, 1
13    %DD = or i101 %D, 1
14    %E = trunc i101 %DD to i32
15    %F = getelementptr [6 x i101]* @Y, i32 0, i32 %E
16    %G = load i101* %F
17  
18    ret i101 %G
19 }