2006-12-03 16:17:19 +00:00
|
|
|
; RUN: llvm-upgrade %s | llvm-as -f -o %t.bc
|
2004-11-06 23:32:43 +00:00
|
|
|
; RUN: lli %t.bc > /dev/null
|
|
|
|
|
2002-12-13 05:44:21 +00:00
|
|
|
int %main() {
|
2002-11-02 20:13:40 +00:00
|
|
|
%A = add sbyte 0, 12
|
2002-12-13 05:51:32 +00:00
|
|
|
%B = sub sbyte %A, 1
|
2002-11-02 20:28:47 +00:00
|
|
|
%C = mul sbyte %B, %B
|
2002-11-02 20:54:11 +00:00
|
|
|
%D = div sbyte %C, %C
|
|
|
|
%E = rem sbyte %D, %D
|
|
|
|
%F = div ubyte 5, 6
|
|
|
|
%G = rem ubyte 6, 5
|
2002-11-02 20:13:40 +00:00
|
|
|
|
|
|
|
%A = add short 0, 12
|
2002-12-13 05:51:32 +00:00
|
|
|
%B = sub short %A, 1
|
2002-11-02 20:28:47 +00:00
|
|
|
%C = mul short %B, %B
|
2002-11-02 20:54:11 +00:00
|
|
|
%D = div short %C, %C
|
|
|
|
%E = rem short %D, %D
|
|
|
|
%F = div ushort 5, 6
|
|
|
|
%G = rem uint 6, 5
|
2002-11-02 20:13:40 +00:00
|
|
|
|
|
|
|
%A = add int 0, 12
|
2002-12-13 05:51:32 +00:00
|
|
|
%B = sub int %A, 1
|
2002-11-02 20:28:47 +00:00
|
|
|
%C = mul int %B, %B
|
2002-11-02 20:54:11 +00:00
|
|
|
%D = div int %C, %C
|
|
|
|
%E = rem int %D, %D
|
|
|
|
%F = div uint 5, 6
|
2003-11-26 14:45:37 +00:00
|
|
|
%G1 = rem uint 6, 5
|
2002-11-02 20:13:40 +00:00
|
|
|
|
2003-01-13 00:56:27 +00:00
|
|
|
%A = add long 0, 12
|
|
|
|
%B = sub long %A, 1
|
|
|
|
%C = mul long %B, %B
|
|
|
|
%D = div long %C, %C
|
|
|
|
%E = rem long %D, %D
|
|
|
|
%F = div ulong 5, 6
|
|
|
|
%G = rem ulong 6, 5
|
|
|
|
|
2002-12-13 05:44:21 +00:00
|
|
|
ret int 0
|
2002-11-02 20:13:40 +00:00
|
|
|
}
|