xref: /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/frv/xoricc.cgs (revision ae87de8892f277bece3527c15b186ebcfa188227)
1# frv testcase for xoricc $GRi,$s10,$GRk,$ICCi_1
2# mach: all
3
4	.include "testutils.inc"
5
6	start
7
8	.global xoricc
9xoricc:
10	set_gr_limmed   0xaaaa,0xaaaa,gr7
11	set_icc         0x07,0		; Set mask opposite of expected
12	xoricc      	gr7,0x155,gr8,icc0
13	test_icc	1 0 1 1 icc0
14	test_gr_limmed 	0xaaaa,0xabff,gr8
15
16	set_gr_immed	0x00000000,gr7
17	set_gr_immed	0x00000000,gr8
18	set_icc         0x08,0		; Set mask opposite of expected
19	xoricc		gr7,0,gr8,icc0
20	test_icc	0 1 0 0 icc0
21	test_gr_immed  	0x00000000,gr8
22
23	set_gr_limmed   0xaaaa,0xaaaa,gr7
24	set_gr_limmed   0xaaaa,0xaaaa,gr8
25	set_icc         0x07,0		; Set mask opposite of expected
26	xoricc      	gr7,0xaa,gr8,icc0
27	test_icc	1 0 1 1 icc0
28	test_gr_limmed  0xaaaa,0xaa00,gr8
29
30	set_gr_limmed   0xdead,0xb000,gr7
31	set_icc         0x0d,0		; Set mask opposite of expected
32	xoricc		gr7,-273,gr8,icc0
33	test_icc	0 0 0 1 icc0
34	test_gr_limmed  0x2152,0x4eef,gr8
35
36	pass
37