aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/bfin/issue129.s
blob: f9653a86550bf87048cd079f0e89b3f51bbf0708 (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
# Blackfin testcase for PREGS and BREV
# mach: bfin

	.include "testutils.inc"

	start

// issue 129

	P0.L = 0x0000;
	P0.H = 0x8000;

	P4.L = 0x0000;
	P4.H = 0x8000;

	P4 += P0 (BREV);

	R0 = P4;
	DBGA ( R0.H , 0x4000 );
	DBGA ( R0.L , 0 );

//--------------

	P0.L = 0x0000;
	P0.H = 0xE000;

	P4.L = 0x1f09;
	P4.H = 0x9008;

	P4 += P0 (BREV);

	R0 = P4;
	DBGA ( R0.H , 0x0808 );
	DBGA ( R0.L , 0x1f09 );

	pass