1 # Hitachi H8 testcase 'xor.l'
2 # mach(): h8300h h8300s h8sx
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 (sim_cpu == h8sx) ; 16-bit immediate is only available on sx.
17 set_grs_a5a5 ; Fill all general regs with
a fixed pattern
21 xor.l #0xffff:16, er0 ; Immediate 16-bit operand
23 ;; fixme test ccr ; H
=0 N
=1 Z
=0 V
=0 C
=0
25 test_h_gr32
0xa5a55a5a er0 ;
xor result
: a5a5a5a5 | ffff
27 test_gr_a5a5
1 ; Make sure other general regs
not disturbed
37 set_grs_a5a5 ; Fill all general regs with
a fixed pattern
41 xor.l #0xffffffff, er0 ; Immediate 32-bit operand
43 ;; fixme test ccr ; H
=0 N
=1 Z
=0 V
=0 C
=0
45 test_h_gr32
0x5a5a5a5a er0 ;
xor result
: a5a5a5a5 ^ ffffffff
47 test_gr_a5a5
1 ; Make sure other general regs
not disturbed
56 set_grs_a5a5 ; Fill all general regs with
a fixed pattern
60 mov.
l #0xffffffff, er1
61 xor.l er1
, er0 ; Register operand
63 ;; fixme test ccr ; H
=0 N
=1 Z
=0 V
=0 C
=0
65 test_h_gr32
0x5a5a5a5a er0 ;
xor result
: a5a5a5a5 ^ ffffffff
66 test_h_gr32
0xffffffff er1 ; Make sure er1 is unchanged
68 test_gr_a5a5
2 ; Make sure other general regs
not disturbed