root / tests / cris / check_bas.s @ 651721b2
History | View | Annotate | Download (1006 Bytes)
1 |
# mach: crisv32 |
---|---|
2 |
# output: 0\n0\n0\nfb349abc\n0\n12124243\n0\n0\neab5baad\n0\nefb37832\n |
3 |
|
4 |
.include "testutils.inc" |
5 |
start |
6 |
x: |
7 |
setf zncv |
8 |
bsr 0f |
9 |
nop |
10 |
0: |
11 |
test_cc 1 1 1 1 |
12 |
move srp,r3 |
13 |
sub.d 0b,r3 |
14 |
checkr3 0 |
15 |
|
16 |
bas 1f,mof |
17 |
moveq 0,r0 |
18 |
6: |
19 |
nop |
20 |
quit |
21 |
|
22 |
2: |
23 |
move srp,r3 |
24 |
sub.d 3f,r3 |
25 |
checkr3 0 |
26 |
move srp,r4 |
27 |
subq 4,r4 |
28 |
move.d [r4],r3 |
29 |
checkr3 fb349abc |
30 |
|
31 |
basc 4f,mof |
32 |
nop |
33 |
.dword 0x12124243 |
34 |
7: |
35 |
nop |
36 |
quit |
37 |
|
38 |
8: |
39 |
move mof,r3 |
40 |
sub.d 7f,r3 |
41 |
checkr3 0 |
42 |
|
43 |
move mof,r4 |
44 |
subq 4,r4 |
45 |
move.d [r4],r3 |
46 |
checkr3 eab5baad |
47 |
|
48 |
jasc 9f,mof |
49 |
nop |
50 |
.dword 0xefb37832 |
51 |
0: |
52 |
quit |
53 |
|
54 |
quit |
55 |
9: |
56 |
move mof,r3 |
57 |
sub.d 0b,r3 |
58 |
checkr3 0 |
59 |
|
60 |
move mof,r4 |
61 |
subq 4,r4 |
62 |
move.d [r4],r3 |
63 |
checkr3 efb37832 |
64 |
|
65 |
quit |
66 |
|
67 |
4: |
68 |
move mof,r3 |
69 |
sub.d 7b,r3 |
70 |
checkr3 0 |
71 |
move mof,r4 |
72 |
subq 4,r4 |
73 |
move.d [r4],r3 |
74 |
checkr3 12124243 |
75 |
basc 5f,bz |
76 |
moveq 0,r3 |
77 |
.dword 0x7634aeba |
78 |
quit |
79 |
|
80 |
.space 32770,0 |
81 |
1: |
82 |
move mof,r3 |
83 |
sub.d 6b,r3 |
84 |
checkr3 0 |
85 |
|
86 |
bsrc 2b |
87 |
nop |
88 |
.dword 0xfb349abc |
89 |
3: |
90 |
|
91 |
quit |
92 |
|
93 |
5: |
94 |
move mof,r3 |
95 |
sub.d 7b,r3 |
96 |
checkr3 0 |
97 |
move.d 8b,r6 |
98 |
jasc r6,mof |
99 |
nop |
100 |
.dword 0xeab5baad |
101 |
7: |
102 |
quit |