New testcase, distilled from 176.gcc codegen failure
[oota-llvm.git] / test / Jello / 2003-08-04-PhysRegLiveFailure.llx
1 ; RUN: llvm-as < %s | llc -march=x86 
2
3 target endian = big         ; We need the byteswaps for this test!
4 target pointersize = 64
5
6 implementation
7
8 long %main(long %s.1, long %e.1, ushort* %foo) {
9         %tmp.28 = load ushort* %foo
10         %tmp.39 = cast uint 0 to ushort*
11         %tmp.42 = sub long %e.1, %s.1
12         %tmp.441 = setge long %tmp.42, 0
13         %tmp.54 = getelementptr ushort* %tmp.39, long 0
14         ret long %s.1
15 }