1 1.1 christos .h8300s 2 1.1 christos .section .text 3 1.1 christos .align 2 4 1.1 christos .global _main 5 1.1 christos .global movb_tests 6 1.1 christos .global movw_tests 7 1.1 christos .global movl_tests 8 1.1 christos .global ldm_stm_tests 9 1.1 christos .global movfpe_movtpe_tests 10 1.1 christos .global add_sub_addx_subx_tests 11 1.1 christos .global inc_dec_adds_subs_tests 12 1.1 christos .global daa_das_tests 13 1.1 christos .global mul_div_tests 14 1.1 christos .global cmp_tests 15 1.1 christos .global neg_tests 16 1.1 christos .global ext_tests 17 1.1 christos .global tas_mac_tests 18 1.1 christos .global logic_operations_tests 19 1.1 christos .global sha_shl_tests 20 1.1 christos .global rot_rotx_tests 21 1.1 christos .global bset_bclr_tests 22 1.1 christos .global bnot_btst_tests 23 1.1 christos .global band_bor_bxor_tests 24 1.1 christos .global bld_bst_tests 25 1.1 christos .global branch_tests 26 1.1 christos .global system_control_tests 27 1.1 christos .global block_data_transfer_tests 28 1.1 christos _main: 29 1.1 christos nop 30 1.1 christos 31 1.1 christos movb_tests: 32 1.1 christos mov.b r0l,r0h 33 1.1 christos mov.b #0x12,r1l 34 1.1 christos mov.b @er0,r1h 35 1.1 christos mov.b @(0x1234:16,er0),r2l 36 1.1 christos mov.b @(0x12345678:32,er0),r2h 37 1.1 christos mov.b @er0+,r3l 38 1.1 christos mov.b @0x12:8,r3h 39 1.1 christos mov.b @0x1234:16,r4l 40 1.1 christos mov.b @0x12345678:32,r4h 41 1.1 christos 42 1.1 christos movw_tests: 43 1.1 christos mov.w e0,r0 44 1.1 christos mov.w #0x1234,r1 45 1.1 christos mov.w @er0,r2 46 1.1 christos mov.w @(0x1234:16,er0),r3 47 1.1 christos mov.w @(0x12345678:32,er0),r4 48 1.1 christos mov.w @er0+,r5 49 1.1 christos mov.w @0x1234:16,r6 50 1.1 christos mov.w @0x12345678:32,r7 51 1.1 christos 52 1.1 christos movl_tests: 53 1.1 christos mov.l er0,er1 54 1.1 christos mov.l #0x12345678,er1 55 1.1 christos mov.l @er0,er2 56 1.1 christos mov.l @(0x1234:16,er0),er3 57 1.1 christos mov.l @(0x12345678:32,er0),er4 58 1.1 christos mov.l @er0+,er5 59 1.1 christos mov.l @0x1234:16,er6 60 1.1 christos mov.l @0x12345678:32,er7 61 1.1 christos 62 1.1 christos ldm_stm_tests: 63 1.1 christos ldm.l @sp+,er0-er1 64 1.1 christos ldm.l @sp+,er0-er2 65 1.1 christos ldm.l @sp+,er0-er3 66 1.1 christos stm.l er0-er1,@-sp 67 1.1 christos stm.l er0-er2,@-sp 68 1.1 christos stm.l er0-er3,@-sp 69 1.1 christos 70 1.1 christos movfpe_movtpe_tests: 71 1.1 christos movfpe @0x1234:16,r2l 72 1.1 christos movtpe r2l,@0x1234:16 73 1.1 christos 74 1.1 christos add_sub_addx_subx_tests: 75 1.1 christos add.b #0x12,r0l 76 1.1 christos add.b r1l,r1h 77 1.1 christos add.w #0x1234,r2 78 1.1 christos add.w r3,r4 79 1.1 christos add.l #0x12345678,er5 80 1.1 christos add.l er6,er7 81 1.1 christos sub.b r1l,r1h 82 1.1 christos sub.w #0x1234,r2 83 1.1 christos sub.w r3,r4 84 1.1 christos sub.l #0x12345678,er5 85 1.1 christos sub.l er6,er7 86 1.1 christos addx #0x12,r0l 87 1.1 christos addx r1l,r1h 88 1.1 christos subx #0x12,r0l 89 1.1 christos subx r1l,r1h 90 1.1 christos 91 1.1 christos inc_dec_adds_subs_tests: 92 1.1 christos inc.b r0l 93 1.1 christos inc.w #0x1,r4 94 1.1 christos inc.w #0x2,r3 95 1.1 christos inc.l #0x1,er2 96 1.1 christos inc.l #0x2,er1 97 1.1 christos dec.b r0l 98 1.1 christos dec.w #0x1,r4 99 1.1 christos dec.w #0x2,r3 100 1.1 christos dec.l #0x1,er2 101 1.1 christos dec.l #0x2,er1 102 1.1 christos adds #0x1,er7 103 1.1 christos adds #0x2,er6 104 1.1 christos adds #0x4,er5 105 1.1 christos subs #0x1,er7 106 1.1 christos subs #0x2,er6 107 1.1 christos subs #0x4,er5 108 1.1 christos 109 1.1 christos daa_das_tests: 110 1.1 christos daa r0l 111 1.1 christos das r0h 112 1.1 christos 113 1.1 christos mul_div_tests: 114 1.1 christos mulxs.b r0l,r1 115 1.1 christos mulxs.w r2,er3 116 1.1 christos mulxu.b r0l,e1 117 1.1 christos mulxu.w e2,er3 118 1.1 christos divxs.b r0l,r1 119 1.1 christos divxs.w r2,er3 120 1.1 christos divxu.b r0l,e1 121 1.1 christos divxu.w e2,er3 122 1.1 christos 123 1.1 christos cmp_tests: 124 1.1 christos cmp.b #0x12,r0l 125 1.1 christos cmp.b r1l,r1h 126 1.1 christos cmp.w #0x1234,r2 127 1.1 christos cmp.w r3,e3 128 1.1 christos cmp.l #0x12345678,er4 129 1.1 christos cmp.l er5,er6 130 1.1 christos 131 1.1 christos neg_tests: 132 1.1 christos neg.b r0l 133 1.1 christos neg.w r2 134 1.1 christos neg.l er3 135 1.1 christos 136 1.1 christos ext_tests: 137 1.1 christos exts.w r0 138 1.1 christos exts.l er1 139 1.1 christos extu.w r2 140 1.1 christos extu.l er3 141 1.1 christos 142 1.1 christos tas_mac_tests: 143 1.1 christos tas @er0 144 1.1 christos mac @er1+,@er2+ 145 1.1 christos clrmac 146 1.1 christos ldmac er4,mach 147 1.1 christos ldmac er5,macl 148 1.1 christos stmac mach,er6 149 1.1 christos stmac macl,er7 150 1.1 christos 151 1.1 christos logic_operations_tests: 152 1.1 christos and.b #0x12,r0l 153 1.1 christos and.b r1l,r2h 154 1.1 christos and.w #0x1234,r0 155 1.1 christos and.w r1,r2 156 1.1 christos and.l #0x12345678,er0 157 1.1 christos and.l er1,er2 158 1.1 christos or.b #0x12,r0l 159 1.1 christos or.b r1l,r2h 160 1.1 christos or.w #0x1234,r0 161 1.1 christos or.w r1,r2 162 1.1 christos or.l #0x12345678,er0 163 1.1 christos or.l er1,er2 164 1.1 christos xor.b #0x12,r0l 165 1.1 christos xor.b r1l,r2h 166 1.1 christos xor.w #0x1234,r0 167 1.1 christos xor.w r1,r2 168 1.1 christos xor.l #0x12345678,er0 169 1.1 christos xor.l er1,er2 170 1.1 christos not.b r0l 171 1.1 christos not.w r1 172 1.1 christos not.l er2 173 1.1 christos 174 1.1 christos sha_shl_tests: 175 1.1 christos shal r0l 176 1.1 christos shal r1 177 1.1 christos shal er2 178 1.1 christos shar r3l 179 1.1 christos shar r4 180 1.1 christos shar er5 181 1.1 christos shll r0l 182 1.1 christos shll r1 183 1.1 christos shll er2 184 1.1 christos shlr r3l 185 1.1 christos shlr r4 186 1.1 christos shlr er5 187 1.1 christos 188 1.1 christos rot_rotx_tests: 189 1.1 christos rotl r0l 190 1.1 christos rotl r1 191 1.1 christos rotl er2 192 1.1 christos rotr r3l 193 1.1 christos rotr r4 194 1.1 christos rotr er5 195 1.1 christos rotxl r0l 196 1.1 christos rotxl r1 197 1.1 christos rotxl er2 198 1.1 christos rotxr r3l 199 1.1 christos rotxr r4 200 1.1 christos rotxr er5 201 1.1 christos 202 1.1 christos bset_bclr_tests: 203 1.1 christos bset #0x7,r0l 204 1.1 christos bset #0x6,@er1 205 1.1 christos bset #0x5,@0x12:8 206 1.1 christos bset #0x4,@0x1234:16 207 1.1 christos bset #0x3,@0x12345678:32 208 1.1 christos bset r7l,r0h 209 1.1 christos bset r6l,@er1 210 1.1 christos bset r5l,@0x12:8 211 1.1 christos bset r4l,@0x1234:16 212 1.1 christos bset r3l,@0x12345678:32 213 1.1 christos bclr #0x7,r0l 214 1.1 christos bclr #0x6,@er1 215 1.1 christos bclr #0x5,@0x12:8 216 1.1 christos bclr #0x4,@0x1234:16 217 1.1 christos bclr #0x3,@0x12345678:32 218 1.1 christos bclr r7h,r0h 219 1.1 christos bclr r6h,@er1 220 1.1 christos bclr r5h,@0x12:8 221 1.1 christos bclr r4h,@0x1234:16 222 1.1 christos bclr r3h,@0x12345678:32 223 1.1 christos 224 1.1 christos bnot_btst_tests: 225 1.1 christos bnot #0x7,r0l 226 1.1 christos bnot #0x6,@er1 227 1.1 christos bnot #0x5,@0x12:8 228 1.1 christos bnot #0x4,@0x1234:16 229 1.1 christos bnot #0x3,@0x12345678:32 230 1.1 christos bnot r7l,r0h 231 1.1 christos bnot r6l,@er1 232 1.1 christos bnot r5l,@0x12:8 233 1.1 christos bnot r4l,@0x1234:16 234 1.1 christos bnot r3l,@0x12345678:32 235 1.1 christos btst #0x7,r0l 236 1.1 christos btst #0x6,@er1 237 1.1 christos btst #0x5,@0x12:8 238 1.1 christos btst #0x4,@0x1234:16 239 1.1 christos btst #0x3,@0x12345678:32 240 1.1 christos btst r7h,r0h 241 1.1 christos btst r6h,@er1 242 1.1 christos btst r5h,@0x12:8 243 1.1 christos btst r4h,@0x1234:16 244 1.1 christos btst r3h,@0x12345678:32 245 1.1 christos 246 1.1 christos band_bor_bxor_tests: 247 1.1 christos band #0x7,r0l 248 1.1 christos band #0x6,@er1 249 1.1 christos band #0x5,@0x12:8 250 1.1 christos band #0x4,@0x1234:16 251 1.1 christos band #0x3,@0x12345678:32 252 1.1 christos bor #0x7,r0l 253 1.1 christos bor #0x6,@er1 254 1.1 christos bor #0x5,@0x12:8 255 1.1 christos bor #0x4,@0x1234:16 256 1.1 christos bor #0x3,@0x12345678:32 257 1.1 christos bxor #0x7,r0l 258 1.1 christos bxor #0x6,@er1 259 1.1 christos bxor #0x5,@0x12:8 260 1.1 christos bxor #0x4,@0x1234:16 261 1.1 christos bxor #0x3,@0x12345678:32 262 1.1 christos 263 1.1 christos bld_bst_tests: 264 1.1 christos bld #0x7,r0l 265 1.1 christos bld #0x6,@er1 266 1.1 christos bld #0x5,@0x12:8 267 1.1 christos bld #0x4,@0x1234:16 268 1.1 christos bld #0x3,@0x12345678:32 269 1.1 christos bild #0x7,r0l 270 1.1 christos bild #0x6,@er1 271 1.1 christos bild #0x5,@0x12:8 272 1.1 christos bild #0x4,@0x1234:16 273 1.1 christos bild #0x3,@0x12345678:32 274 1.1 christos bst #0x7,r0l 275 1.1 christos bst #0x6,@er1 276 1.1 christos bst #0x5,@0x12:8 277 1.1 christos bst #0x4,@0x1234:16 278 1.1 christos bst #0x3,@0x12345678:32 279 1.1 christos bist #0x7,r0l 280 1.1 christos bist #0x6,@er1 281 1.1 christos bist #0x5,@0x12:8 282 1.1 christos bist #0x4,@0x1234:16 283 1.1 christos bist #0x3,@0x12345678:32 284 1.1 christos 285 1.1 christos branch_tests: 286 1.1 christos bra branch_tests 287 1.1 christos brn branch_tests 288 1.1 christos bhi branch_tests 289 1.1 christos bls branch_tests 290 1.1 christos bcc branch_tests 291 1.1 christos bcs branch_tests 292 1.1 christos bne branch_tests 293 1.1 christos beq branch_tests 294 1.1 christos bvc branch_tests 295 1.1 christos bvs branch_tests 296 1.1 christos bpl branch_tests 297 1.1 christos bmi branch_tests 298 1.1 christos bge branch_tests 299 1.1 christos blt branch_tests 300 1.1 christos bgt branch_tests 301 1.1 christos ble branch_tests 302 1.1 christos jmp @er0 303 1.1 christos jmp @branch_tests 304 1.1 christos jmp @@0 (0) 305 1.1 christos bsr branch_tests:8 306 1.1 christos bsr branch_tests:16 307 1.1 christos jsr @er0 308 1.1 christos jsr @branch_tests 309 1.1 christos jsr @@0 (0) 310 1.1 christos rts 311 1.1 christos 312 1.1 christos system_control_tests: 313 1.1 christos trapa #0x2 314 1.1 christos rte 315 1.1 christos sleep 316 1.1 christos ldc #0x12,ccr 317 1.1 christos ldc r3l,ccr 318 1.1 christos ldc @er0,ccr 319 1.1 christos ldc @(0x1234:16,er0),ccr 320 1.1 christos ldc @(0x12345678:32,er0),ccr 321 1.1 christos ldc @er1+,ccr 322 1.1 christos ldc @0x1234:16,ccr 323 1.1 christos ldc @0x12345678:32,ccr 324 1.1 christos stc ccr,r3l 325 1.1 christos stc ccr,@er0 326 1.1 christos stc ccr,@(0x1234:16,er0) 327 1.1 christos stc ccr,@(0x12345678:32,er0) 328 1.1 christos stc ccr,@-er1 329 1.1 christos stc ccr,@0x1234:16 330 1.1 christos stc ccr,@0x12345678:32 331 1.1 christos andc #0x12,ccr 332 1.1 christos orc #0x34,ccr 333 1.1 christos xorc #0x56,ccr 334 1.1 christos ldc #0x12,exr 335 1.1 christos ldc r3l,exr 336 1.1 christos ldc @er0,exr 337 1.1 christos ldc @(0x1234:16,er0),exr 338 1.1 christos ldc @(0x12345678:32,er0),exr 339 1.1 christos ldc @er1+,exr 340 1.1 christos ldc @0x1234:16,exr 341 1.1 christos ldc @0x12345678:32,exr 342 1.1 christos stc exr,r3l 343 1.1 christos stc exr,@er0 344 1.1 christos stc exr,@(0x1234:16,er0) 345 1.1 christos stc exr,@(0x12345678:32,er0) 346 1.1 christos stc exr,@-er1 347 1.1 christos stc exr,@0x1234:16 348 1.1 christos stc exr,@0x12345678:32 349 1.1 christos andc #0x12,exr 350 1.1 christos orc #0x34,exr 351 1.1 christos xorc #0x56,exr 352 1.1 christos nop 353 1.1 christos 354 1.1 christos block_data_transfer_tests: 355 1.1 christos eepmov.b 356 1.1 christos eepmov.w 357 1.6 christos .section .note.GNU-stack,"",@progbits 358