aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/bfin/issue118.s
blob: bc455b3e7cf3084f940d03a3282f6c5a25b686bd (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
# mach: bfin

.include "testutils.inc"
	start


// issue 118

	R0 = 1;
	R1 = 0;
	A0.x = R1;
	A0.w = R0;

	A0 = - A0;

	_DBG A0;
	_DBG ASTAT;

//R0 = ASTAT;
//DBGA ( R0.L , 0x2 );

	cc = az;
	r0 = cc;
	dbga( r0.l, 0);
	cc = an;
	r0 = cc;
	dbga( r0.l, 1);
	cc = av0;
	r0 = cc;
	dbga( r0.l, 0);
	cc = av0s;
	r0 = cc;
	dbga( r0.l, 0);
	cc = av1;
	r0 = cc;
	dbga( r0.l, 0);
	cc = av1s;
	r0 = cc;
	dbga( r0.l, 0);

	pass