These tests pass on darwin now that the __ thing is fixed.
[oota-llvm.git] / test / ExecutionEngine / test-arith.ll
1 ; RUN: llvm-as -f %s -o %t.bc
2 ; RUN: lli %t.bc > /dev/null
3
4 int %main() {
5         %A = add sbyte 0, 12
6         %B = sub sbyte %A, 1
7         %C = mul sbyte %B, %B
8         %D = div sbyte %C, %C
9         %E = rem sbyte %D, %D
10         %F = div ubyte 5, 6
11         %G = rem ubyte 6, 5
12
13         %A = add short 0, 12
14         %B = sub short %A, 1
15         %C = mul short %B, %B
16         %D = div short %C, %C
17         %E = rem short %D, %D
18         %F = div ushort 5, 6
19         %G = rem uint 6, 5
20
21         %A = add int 0, 12
22         %B = sub int %A, 1
23         %C = mul int %B, %B
24         %D = div int %C, %C
25         %E = rem int %D, %D
26         %F = div uint 5, 6
27         %G1 = rem uint 6, 5
28
29         %A = add long 0, 12
30         %B = sub long %A, 1
31         %C = mul long %B, %B
32         %D = div long %C, %C
33         %E = rem long %D, %D
34         %F = div ulong 5, 6
35         %G = rem ulong 6, 5
36
37         ret int 0
38 }