Commit | Line | Data |
---|---|---|
4a71579b PC |
1 | .data 32 |
2 | fmt: | |
3 | .c "%d\n" | |
4 | .code | |
5 | prolog | |
6 | movi %r0 1 | |
7 | jmpi L1 /* should not generate this */ | |
8 | align $(__WORDSIZE / 8) /* possible nops */ | |
9 | L1: | |
10 | bgei L4 %r0 10 | |
11 | addi %r0 %r0 1 | |
12 | jmpi L2 | |
13 | movr %r1 %r0 /* to force jump generation */ | |
14 | align $(__WORDSIZE / 8) /* possible nops */ | |
15 | L2: | |
16 | bgti L4 %r0 10 /* never executed */ | |
17 | align $(__WORDSIZE / 8) /* possible nops */ | |
18 | L3: | |
19 | jmpi L1 | |
c0c16242 | 20 | align 32 /* Force nops */ |
4a71579b PC |
21 | L4: |
22 | prepare | |
23 | pushargi fmt | |
24 | ellipsis | |
25 | pushargr %r0 | |
26 | finishi @printf | |
27 | ret | |
28 | epilog |