1 # Hitachi H8 testcase 'muls', 'muls/u', mulu', 'mulu/u', 'mulxs', 'mulxu'
3 # as(h8300): --defsym sim_cpu=0
4 # as(h8300h): --defsym sim_cpu=1
5 # as(h8300s): --defsym sim_cpu=2
6 # as(h8sx): --defsym sim_cpu=3
7 # ld(h8300h): -m h8300helf
8 # ld(h8300s): -m h8300self
9 # ld(h8sx): -m h8300sxelf
11 .include "testutils.inc"
25 ;; test ccr ; H=0 N=1 Z=0 V=0 C=0
33 test_h_gr32 0xa5a5fffe er2
48 ;; test ccr ; H=0 N=1 Z=0 V=0 C=0
72 ;; test ccr ; H=0 N=1 Z=0 V=0 C=0
79 test_h_gr32 -640000 er1
95 ;; test ccr ; H=0 N=1 Z=0 V=0 C=0
102 test_h_gr32 -640000 er1
114 mov.l #0x10000000, er1
119 ;; test ccr ; H=0 N=1 Z=0 V=0 C=0
138 mov.l #0xffffffff, er1
142 ;; test ccr ; H=0 N=1 Z=0 V=0 C=0
166 ;; test ccr ; H=0 N=0 Z=0 V=0 C=0
171 test_h_gr32 0xa5a5fffe er2
186 ;; test ccr ; H=0 N=0 Z=0 V=0 C=0
207 ;; test ccr ; H=0 N=0 Z=0 V=0 C=0
211 test_h_gr32 -640000 er1
227 ;; test ccr ; H=0 N=0 Z=0 V=0 C=0
231 test_h_gr32 0x445c00 er1
243 mov.l #0x10000000, er1
248 ;; test ccr ; H=0 N=0 Z=0 V=0 C=0
264 mov.l #0xffffffff, er1
268 ;; test ccr ; H=0 N=0 Z=0 V=0 C=0
281 .if (sim_cpu) ; not equal to zero ie. not h8
291 ;; test ccr ; H=0 N=1 Z=0 V=0 C=0
299 test_h_gr32 0xa5a5a5fe er2
306 .if (sim_cpu == h8sx)
315 ;; test ccr ; H=0 N=1 Z=0 V=0 C=0
340 ;; test ccr ; H=0 N=1 Z=0 V=0 C=0
347 test_h_gr32 0xff000000 er1
348 test_h_gr32 0xa5a5f000 er2
355 .if (sim_cpu == h8sx)
364 ;; test ccr ; H=0 N=1 Z=0 V=0 C=0
390 ;; test ccr ; H=0 N=0 Z=0 V=0 C=0
394 test_h_gr16 0x1fc0 r1
395 test_h_gr16 0xa5fe r2
397 test_h_gr32 0xa5a5a5fe er2
405 .if (sim_cpu) ; not h8
406 .if (sim_cpu == h8sx)
415 ;; test ccr ; H=0 N=0 Z=0 V=0 C=0
437 ;; test ccr ; H=0 N=0 Z=0 V=0 C=0
441 test_h_gr32 0x0f000000 er1
442 test_h_gr32 0xa5a5f000 er2
449 .if (sim_cpu == h8sx)
458 ;; test ccr ; H=0 N=0 Z=0 V=0 C=0
462 test_h_gr32 0x1fffe er1