blob: ea6436f68b8e0afb77baf9bed8c2cdd8c64a5562 [file] [log] [blame]
Chris Lattner00950542001-06-06 20:29:01 +00001implementation
2
Chris Lattner00950542001-06-06 20:29:01 +00003; Test "stripped" format where nothing is symbolic... this is how the bytecode
4; format looks anyways (except for negative vs positive offsets)...
5;
6void "void"(int, int) ; Def %0, %1
Chris Lattnerfe5e5842001-10-03 01:48:04 +00007 const int 0 ; Def 2
8 const int -4 ; Def 3
Chris Lattner00950542001-06-06 20:29:01 +00009begin
10 add int %0, %1 ; Def 4
11 sub int %4, %3 ; Def 5
12 setle int %5, %2 ; Def 0 - bool plane
13 br bool %0, label %1, label %0
14
15 add int %0, %1 ; Def 6
16 sub int %4, %3 ; Def 7
17 setle int %7, %2 ; Def 1 - bool plane
18 ret void
19end
20
21; This function always returns zero
22int "zarro"()
Chris Lattnerfe5e5842001-10-03 01:48:04 +000023 const uint 4000000000 ; Def 0 - uint plane
24 const int 0 ; Def 0 - int plane
Chris Lattner00950542001-06-06 20:29:01 +000025begin
26Startup:
27 ret int %0
28end
29