blob: bd1dbd009c0ab9fbad348b02a39e3a0453456769 [file] [log] [blame]
Reid Spencerd0e30dc2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
Chris Lattner4c6f8682006-06-28 17:34:28 +00002target 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]
Reid Spencerdeb4d5a2006-12-31 06:02:00 +000012 %tmp8.ui = load ulong* null ; <ulong> [#uses=1]
13 %tmp8 = cast ulong %tmp8.ui to long ; <long> [#uses=1]
Chris Lattner4c6f8682006-06-28 17:34:28 +000014 %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)