aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/bfin/b2.S
blob: 731f874460460da1b566faa8bd16a65754f86153 (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
# mach: bfin

#include "test.h"
.include "testutils.inc"
	start

	R0 = 0;
	ASTAT = R0;

	CC = BITTST ( R0 , 0x0 );
	BITSET( R0 , 0x0 );
	CC = BITTST ( R0 , 0x0 );
	CC = ! BITTST( R0 , 0x0 );
	R1.L = 1;
	R1.H = 0;
	CC = R0 == R1;
	CC = BITTST ( R0 , 0x1 );
	R5 = ASTAT;
	CHECKREG R5, (_AC0|_AC0_COPY|_AZ)

	BITSET( R0 , 0x1 );
	R5 = ASTAT;
	CHECKREG R5, 0
	CC = BITTST ( R0 , 0x1 );
	CC = ! BITTST( R0 , 0x1 );
	pass