root / tests / tcg / cris / check_bcc.s @ c09015dd
History | View | Annotate | Download (1.7 kB)
1 | dd43edf4 | ths | .global main |
---|---|---|---|
2 | dd43edf4 | ths | .type main, @function |
3 | dd43edf4 | ths | main: |
4 | dd43edf4 | ths | clearf nzvc |
5 | dd43edf4 | ths | setf nzv |
6 | dd43edf4 | ths | bcc 0f |
7 | dd43edf4 | ths | addq 1, $r3 |
8 | dd43edf4 | ths | jump dofail |
9 | dd43edf4 | ths | |
10 | dd43edf4 | ths | 0: |
11 | dd43edf4 | ths | clearf nzvc |
12 | dd43edf4 | ths | setf nzv |
13 | dd43edf4 | ths | bcs dofail |
14 | dd43edf4 | ths | addq 1,$r3 |
15 | dd43edf4 | ths | |
16 | dd43edf4 | ths | clearf nzvc |
17 | dd43edf4 | ths | setf ncv |
18 | dd43edf4 | ths | bne 1f |
19 | dd43edf4 | ths | addq 1, $r3 |
20 | dd43edf4 | ths | |
21 | dd43edf4 | ths | fail: |
22 | dd43edf4 | ths | dofail: |
23 | dd43edf4 | ths | jump _fail |
24 | dd43edf4 | ths | |
25 | dd43edf4 | ths | 1: |
26 | dd43edf4 | ths | clearf nzvc |
27 | dd43edf4 | ths | setf ncv |
28 | dd43edf4 | ths | beq dofail |
29 | dd43edf4 | ths | addq 1,$r3 |
30 | dd43edf4 | ths | |
31 | dd43edf4 | ths | clearf nzvc |
32 | dd43edf4 | ths | setf ncz |
33 | dd43edf4 | ths | bvc 2f |
34 | dd43edf4 | ths | addq 1,$r3 |
35 | dd43edf4 | ths | jump dofail |
36 | dd43edf4 | ths | |
37 | dd43edf4 | ths | 2: |
38 | dd43edf4 | ths | clearf nzvc |
39 | dd43edf4 | ths | setf ncz |
40 | dd43edf4 | ths | bvs dofail |
41 | dd43edf4 | ths | addq 1,$r3 |
42 | dd43edf4 | ths | |
43 | dd43edf4 | ths | clearf nzvc |
44 | dd43edf4 | ths | setf vcz |
45 | dd43edf4 | ths | bpl 3f |
46 | dd43edf4 | ths | addq 1,$r3 |
47 | dd43edf4 | ths | jump fail |
48 | dd43edf4 | ths | 3: |
49 | dd43edf4 | ths | clearf nzvc |
50 | dd43edf4 | ths | setf vcz |
51 | dd43edf4 | ths | bmi dofail |
52 | dd43edf4 | ths | addq 1,$r3 |
53 | dd43edf4 | ths | |
54 | dd43edf4 | ths | clearf nzvc |
55 | dd43edf4 | ths | setf nv |
56 | dd43edf4 | ths | bls dofail |
57 | dd43edf4 | ths | addq 1,$r3 |
58 | dd43edf4 | ths | |
59 | dd43edf4 | ths | clearf nzvc |
60 | dd43edf4 | ths | setf nv |
61 | dd43edf4 | ths | bhi 4f |
62 | dd43edf4 | ths | addq 1,$r3 |
63 | dd43edf4 | ths | jump dofail |
64 | dd43edf4 | ths | |
65 | dd43edf4 | ths | 4: |
66 | dd43edf4 | ths | clearf nzvc |
67 | dd43edf4 | ths | setf zc |
68 | dd43edf4 | ths | bge 5f |
69 | dd43edf4 | ths | addq 1,$r3 |
70 | dd43edf4 | ths | jump dofail |
71 | dd43edf4 | ths | |
72 | dd43edf4 | ths | 5: |
73 | dd43edf4 | ths | clearf nzvc |
74 | dd43edf4 | ths | setf zc |
75 | dd43edf4 | ths | blt dofail |
76 | dd43edf4 | ths | addq 1,$r3 |
77 | dd43edf4 | ths | |
78 | dd43edf4 | ths | clearf nzvc |
79 | dd43edf4 | ths | setf c |
80 | dd43edf4 | ths | bgt 6f |
81 | dd43edf4 | ths | addq 1,$r3 |
82 | dd43edf4 | ths | jump fail |
83 | dd43edf4 | ths | |
84 | dd43edf4 | ths | 6: |
85 | dd43edf4 | ths | clearf nzvc |
86 | dd43edf4 | ths | setf c |
87 | dd43edf4 | ths | ble dofail |
88 | dd43edf4 | ths | addq 1,$r3 |
89 | dd43edf4 | ths | |
90 | dd43edf4 | ths | ;;;;;;;;;; |
91 | dd43edf4 | ths | |
92 | dd43edf4 | ths | setf nzvc |
93 | dd43edf4 | ths | clearf nzv |
94 | dd43edf4 | ths | bcc dofail |
95 | dd43edf4 | ths | addq 1,$r3 |
96 | dd43edf4 | ths | |
97 | dd43edf4 | ths | setf nzvc |
98 | dd43edf4 | ths | clearf nzv |
99 | dd43edf4 | ths | bcs 0f |
100 | dd43edf4 | ths | addq 1,$r3 |
101 | dd43edf4 | ths | jump fail |
102 | dd43edf4 | ths | |
103 | dd43edf4 | ths | 0: |
104 | dd43edf4 | ths | setf nzvc |
105 | dd43edf4 | ths | clearf ncv |
106 | dd43edf4 | ths | bne dofail |
107 | dd43edf4 | ths | addq 1,$r3 |
108 | dd43edf4 | ths | |
109 | dd43edf4 | ths | setf nzvc |
110 | dd43edf4 | ths | clearf ncv |
111 | dd43edf4 | ths | beq 1f |
112 | dd43edf4 | ths | addq 1,$r3 |
113 | dd43edf4 | ths | jump fail |
114 | dd43edf4 | ths | |
115 | dd43edf4 | ths | 1: |
116 | dd43edf4 | ths | setf nzvc |
117 | dd43edf4 | ths | clearf ncz |
118 | dd43edf4 | ths | bvc dofail |
119 | dd43edf4 | ths | addq 1,$r3 |
120 | dd43edf4 | ths | |
121 | dd43edf4 | ths | setf nzvc |
122 | dd43edf4 | ths | clearf ncz |
123 | dd43edf4 | ths | bvs 2f |
124 | dd43edf4 | ths | addq 1,$r3 |
125 | dd43edf4 | ths | jump fail |
126 | dd43edf4 | ths | |
127 | dd43edf4 | ths | 2: |
128 | dd43edf4 | ths | setf nzvc |
129 | dd43edf4 | ths | clearf vcz |
130 | dd43edf4 | ths | bpl dofail |
131 | dd43edf4 | ths | addq 1,$r3 |
132 | dd43edf4 | ths | |
133 | dd43edf4 | ths | setf nzvc |
134 | dd43edf4 | ths | clearf vcz |
135 | dd43edf4 | ths | bmi 3f |
136 | dd43edf4 | ths | addq 1,$r3 |
137 | dd43edf4 | ths | jump fail |
138 | dd43edf4 | ths | |
139 | dd43edf4 | ths | 3: |
140 | dd43edf4 | ths | setf nzvc |
141 | dd43edf4 | ths | clearf nv |
142 | dd43edf4 | ths | bls 4f |
143 | dd43edf4 | ths | addq 1,$r3 |
144 | dd43edf4 | ths | jump fail |
145 | dd43edf4 | ths | |
146 | dd43edf4 | ths | 4: |
147 | dd43edf4 | ths | setf nzvc |
148 | dd43edf4 | ths | clearf nv |
149 | dd43edf4 | ths | bhi dofail |
150 | dd43edf4 | ths | addq 1,$r3 |
151 | dd43edf4 | ths | |
152 | dd43edf4 | ths | setf zvc |
153 | dd43edf4 | ths | clearf nzc |
154 | dd43edf4 | ths | bge dofail |
155 | dd43edf4 | ths | addq 1,$r3 |
156 | dd43edf4 | ths | |
157 | dd43edf4 | ths | setf nzc |
158 | dd43edf4 | ths | clearf vzc |
159 | dd43edf4 | ths | blt 5f |
160 | dd43edf4 | ths | addq 1,$r3 |
161 | dd43edf4 | ths | jump fail |
162 | dd43edf4 | ths | |
163 | dd43edf4 | ths | 5: |
164 | dd43edf4 | ths | setf nzvc |
165 | dd43edf4 | ths | clearf c |
166 | dd43edf4 | ths | bgt dofail |
167 | dd43edf4 | ths | addq 1,$r3 |
168 | dd43edf4 | ths | |
169 | dd43edf4 | ths | setf nzvc |
170 | dd43edf4 | ths | clearf c |
171 | dd43edf4 | ths | ble 6f |
172 | dd43edf4 | ths | addq 1,$r3 |
173 | dd43edf4 | ths | jump fail |
174 | dd43edf4 | ths | |
175 | dd43edf4 | ths | 6: |
176 | dd43edf4 | ths | ; do a forward branch. |
177 | dd43edf4 | ths | ba 2f |
178 | dd43edf4 | ths | nop |
179 | dd43edf4 | ths | .fill 100 |
180 | dd43edf4 | ths | 1: |
181 | dd43edf4 | ths | ba 3f |
182 | dd43edf4 | ths | nop |
183 | dd43edf4 | ths | .fill 800 |
184 | dd43edf4 | ths | 2: |
185 | dd43edf4 | ths | ba 1b |
186 | dd43edf4 | ths | nop |
187 | dd43edf4 | ths | .fill 1024 |
188 | dd43edf4 | ths | 3: |
189 | dd43edf4 | ths | |
190 | dd43edf4 | ths | moveq 31, $r0 |
191 | dd43edf4 | ths | 1: bne 1b |
192 | dd43edf4 | ths | subq 1, $r0 |
193 | dd43edf4 | ths | |
194 | dd43edf4 | ths | jsr pass |
195 | dd43edf4 | ths | moveq 0, $r10 |
196 | dd43edf4 | ths | ret |
197 | dd43edf4 | ths | nop |