root / tests / cris / check_ret.s @ 212b6008
History | View | Annotate | Download (241 Bytes)
1 | dd43edf4 | ths | # mach: crisv3 crisv8 crisv10 |
---|---|---|---|
2 | dd43edf4 | ths | # output: 3\n |
3 | dd43edf4 | ths | |
4 | dd43edf4 | ths | # Test that ret works. |
5 | dd43edf4 | ths | |
6 | dd43edf4 | ths | .include "testutils.inc" |
7 | dd43edf4 | ths | start |
8 | dd43edf4 | ths | x: |
9 | dd43edf4 | ths | moveq 0,r3 |
10 | dd43edf4 | ths | jsr z |
11 | dd43edf4 | ths | w: |
12 | dd43edf4 | ths | quit |
13 | dd43edf4 | ths | y: |
14 | dd43edf4 | ths | addq 1,r3 |
15 | dd43edf4 | ths | checkr3 3 |
16 | dd43edf4 | ths | quit |
17 | dd43edf4 | ths | |
18 | dd43edf4 | ths | z: |
19 | dd43edf4 | ths | addq 1,r3 |
20 | dd43edf4 | ths | move srp,r2 |
21 | dd43edf4 | ths | add.d y-w,r2 |
22 | dd43edf4 | ths | move r2,srp |
23 | dd43edf4 | ths | ret |
24 | dd43edf4 | ths | addq 1,r3 |
25 | dd43edf4 | ths | quit |