summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/bfin/m0boundary.s
blob: 5995d8834b512d4ccaf202f7d7c7b9ce36dc45c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# mach: bfin

.include "testutils.inc"
	start

// setup a circular buffer calculation based on illegal register values
	I0 = 0xf2ef (Z);
	I0.H = 0xff88;

	L0 = 0xbd5f (Z);
	L0.H = 0xea9b;

	M0 = 0x0000 (Z);
	M0.H = 0x8000;

	B0 = 0x3fb9 (Z);
	B0.H = 0xff80;

op1:
	I0 -= M0;

	R0 = I0;
	DBGA ( R0.H , 0x7f88 );
	DBGA ( R0.L , 0xf2ef );

// setup a circular buffer calculation based on illegal register values
	I0 = 0xf2ef (Z);
	I0.H = 0xff88;

	L0 = 0xbd5f (Z);
	L0.H = 0xea9b;

	M0 = 0x0001 (Z);
	M0.H = 0x8000;

	B0 = 0x3fb9 (Z);
	B0.H = 0xff80;

op2:
	I0 -= M0;

	R0 = I0;
	DBGA ( R0.H , 0x7f88 );
	DBGA ( R0.L , 0xf2ee );

	pass