1 # Hitachi H8 testcase 'jmp'
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 .if 0 ; this one isn't right -- it's an indirect
17 set_grs_a5a5 ; Fill all general regs with a fixed pattern
20 ;; jmp @aa:8 ; 8-bit displacement
26 test_gr_a5a5 0 ; Make sure other general regs not disturbed
37 set_grs_a5a5 ; Fill all general regs with a fixed pattern
40 ;; jmp @aa:24 ; 24-bit address
46 test_gr_a5a5 0 ; Make sure other general regs not disturbed
55 .if (sim_cpu) ; Non-zero means h8300h, h8300s, or h8sx
57 set_grs_a5a5 ; Fill all general regs with a fixed pattern
60 ;; jmp @ern ; register indirect
67 test_gr_a5a5 0 ; Make sure other general regs not disturbed
72 test_h_gr32 .Ltgt_reg er5
79 set_grs_a5a5 ; Fill all general regs with a fixed pattern
82 ;; jmp @aa:32 ; 32-bit address
83 ; jmp @.Ltgt_32:32 ; NOTE: hard-coded to avoid relaxing
90 test_gr_a5a5 0 ; Make sure other general regs not disturbed