aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/bfin/cc1.s
blob: d5d86d8040e8f4e6f310cde181bca254f78dbcee (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 "testutils.inc"
	start


	R0 = 0x1234 (X);
	CC = BITTST ( R0 , 2 );
	IF !CC JUMP s$0;
	R0 += 1;
s$0:
	nop;
	DBGA ( R0.L , 0x1235 );
	CC = BITTST ( R0 , 1 );
	IF !CC JUMP s$1;
	R0 += 1;
s$1:
	nop;
	DBGA ( R0.L , 0x1235 );
	CC = BITTST ( R0 , 12 );
	IF !CC JUMP s$3;
	R0 = - R0;
s$3:
	nop;
	DBGA ( R0.L , 0xedcb );
	pass