blob: 73d3b546ffbe8a3b46304195501c3053379f2d23 [file] [log] [blame]
Reid Spencerc6b9efa2007-04-13 22:33:10 +00001; 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
7define i101 @array()
8{
9Head:
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}