blob: 7508f589c309320b4874ac93779352d3f3947d64 [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
Chris Lattner8b309de2002-01-31 00:25:00 +000010 br label %1
11
Chris Lattner00950542001-06-06 20:29:01 +000012 add int %0, %1 ; Def 4
13 sub int %4, %3 ; Def 5
14 setle int %5, %2 ; Def 0 - bool plane
Chris Lattner8b309de2002-01-31 00:25:00 +000015 br bool %0, label %2, label %1
Chris Lattner00950542001-06-06 20:29:01 +000016
17 add int %0, %1 ; Def 6
18 sub int %4, %3 ; Def 7
19 setle int %7, %2 ; Def 1 - bool plane
20 ret void
21end
22
23; This function always returns zero
24int "zarro"()
Chris Lattnerfe5e5842001-10-03 01:48:04 +000025 const uint 4000000000 ; Def 0 - uint plane
26 const int 0 ; Def 0 - int plane
Chris Lattner00950542001-06-06 20:29:01 +000027begin
28Startup:
29 ret int %0
30end
31