net: add tap_read_poll() helper
[qemu-kvm/fedora.git] / tests / cris / check_jsr.s
blob1060237873147786570a7660fe761848610a9c34
1 # mach: crisv3 crisv8 crisv10 crisv32
2 # output: 0\n0\n0\n0\n0\n0\n
4 # Test that jsr Rn and jsr [PC+] work.
6 .include "testutils.inc"
7 start
8 x:
9 move.d 0f,r6
10 setf nzvc
11 jsr r6
12 .if 1; ..asm.arch.cris.v32
13 nop
14 .endif
16 test_move_cc 1 1 1 1
17 move srp,r3
18 sub.d 0b,r3
19 checkr3 0
21 move.d 1f,r0
22 setf nzvc
23 jsr r0
24 .if 1 ; ..asm.arch.cris.v32
25 moveq 0,r0
26 .endif
28 nop
29 quit
32 test_move_cc 0 0 0 0
33 move srp,r3
34 sub.d 3f,r3
35 checkr3 0
36 jsr 4f
37 .if 1 ; ..asm.arch.cris.v32
38 nop
39 .endif
41 nop
42 quit
45 move srp,r3
46 sub.d 7b,r3
47 checkr3 0
48 quit
51 move srp,r3
52 sub.d 7b,r3
53 checkr3 0
54 move.d 5f,r3
55 jump r3
56 .if 1; ..asm.arch.cris.v32
57 moveq 0,r3
58 .endif
59 quit
61 .space 32770,0
63 test_move_cc 1 1 1 1
64 move srp,r3
65 sub.d 6b,r3
66 checkr3 0
68 clearf cznv
69 jsr 2b
70 .if 1; ..asm.arch.cris.v32
71 nop
72 .endif
75 quit
78 move srp,r3
79 sub.d 7b,r3
80 checkr3 0
81 jump 8b
82 .if 1 ; ..asm.arch.cris.v32
83 nop
84 .endif
85 quit