blob: 2c48ffb2d90538299b3560f002dd66bfae914867 [file] [log] [blame]
Chris Lattner4c6f8682006-06-28 17:34:28 +00001; RUN: llvm-as < %s | opt -instcombine -disable-output
2target endian = big
3target pointersize = 32
4target triple = "powerpc-apple-darwin8"
5
6implementation ; Functions:
7
8void %test() {
9entry:
10 %tmp = getelementptr { long, long, long, long }* null, int 0, uint 3
11 %tmp = load long* %tmp ; <long> [#uses=1]
12 %tmp8 = load ulong* null ; <ulong> [#uses=1]
13 %tmp8 = cast ulong %tmp8 to long ; <long> [#uses=1]
14 %tmp9 = and long %tmp8, %tmp ; <long> [#uses=1]
15 %sext = cast long %tmp9 to int ; <int> [#uses=1]
16 %tmp27.i = cast int %sext to long ; <long> [#uses=1]
17 tail call void %foo( uint 0, long %tmp27.i )
18 unreachable
19}
20
21declare void %foo(uint, long)