New testcase distilled from the fhourstones benchmark
[oota-llvm.git] / test / ExecutionEngine / 2003-05-06-LivenessClobber.llx
1 ; This testcase shoudl return with an exit code of 1.
2 ;
3 ; RUN: if as < %s | lli -force-interpreter=false
4 ; RUN: then exit 1
5 ; RUN: else exit 0
6 ; RUN: fi
7
8 target endian = little
9 target pointersize = 32
10
11 %test = global long 0
12 implementation
13
14
15 internal long %test() {
16         %tmp.0 = load long* %test               ; <long> [#uses=1]
17         %tmp.1 = add long %tmp.0, 1             ; <long> [#uses=1]
18         ret long %tmp.1
19 }
20
21 int %main() {
22         %L = call long %test()
23         %I = cast long %L to int
24         ret int %I
25 }
26