blob: 4fcc190cbb143b7a4d91154bdf41d3b26afde94a [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 Lattner00950542001-06-06 20:29:01 +00007begin
Chris Lattner8fba3a02002-05-02 21:52:35 +00008 add int 0, 0 ; Def 2
9 sub int 0, 4 ; Def 3
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 Lattner00950542001-06-06 20:29:01 +000025begin
26Startup:
Chris Lattner8fba3a02002-05-02 21:52:35 +000027 ret int 0
Chris Lattner00950542001-06-06 20:29:01 +000028end
29