xref: /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/bfin/issue129.s (revision 4b169a6ba595ae283ca507b26b15fdff40495b1c)
1# Blackfin testcase for PREGS and BREV
2# mach: bfin
3
4	.include "testutils.inc"
5
6	start
7
8// issue 129
9
10	P0.L = 0x0000;
11	P0.H = 0x8000;
12
13	P4.L = 0x0000;
14	P4.H = 0x8000;
15
16	P4 += P0 (BREV);
17
18	R0 = P4;
19	DBGA ( R0.H , 0x4000 );
20	DBGA ( R0.L , 0 );
21
22//--------------
23
24	P0.L = 0x0000;
25	P0.H = 0xE000;
26
27	P4.L = 0x1f09;
28	P4.H = 0x9008;
29
30	P4 += P0 (BREV);
31
32	R0 = P4;
33	DBGA ( R0.H , 0x0808 );
34	DBGA ( R0.L , 0x1f09 );
35
36	pass
37