1 # Hitachi H8 testcase 'movmd'
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"
15 .byte 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
17 .byte 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
21 .word 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
23 .word 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
27 .long 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
29 .long 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
51 test_h_gr32 0xa5a50000 er4
52 test_h_gr32 byte_src+10 er5
53 test_h_gr32 byte_dst+10 er6
57 # Now make sure exactly 10 bytes were transferred.
58 memcmp byte_src byte_dst 10
59 cmp.b #0, @byte_dst+10
82 test_h_gr32 0xa5a50000 er4
83 test_h_gr32 word_src+20 er5
84 test_h_gr32 word_dst+20 er6
88 # Now make sure exactly 20 bytes were transferred.
89 memcmp word_src word_dst 20
90 cmp.w #0, @word_dst+20
113 test_h_gr32 0xa5a50000 er4
114 test_h_gr32 long_src+40 er5
115 test_h_gr32 long_dst+40 er6
119 # Now make sure exactly 40 bytes were transferred.
120 memcmp long_src long_dst 40
121 cmp.l #0, @long_dst+40