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

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

	r0 = 0;
	ASTAT = R0;

	r0.h =0x8000;
	r1 = 0;
	r1.h =0x8000;
	cc = r1==r0;
	_dbg astat;
	r7=astat;
	CHECKREG R7, (_AC0|_AC0_COPY|_CC|_AZ);

	r7=0;
	astat=r7;
	r0.l = 0xffff;
	r0.h =0x7fff;
	r1.l = 0xffff;
	r1.h =0x7fff;
	cc = r1==r0;
	_dbg astat;
	r7=astat;
	CHECKREG R7, (_AC0|_AC0_COPY|_CC|_AZ);

	r7=0;
	astat=r7;
	r0.l = 0;
	r0.h =0x8000;
	r1.l = 0xffff;
	r1.h =0x7fff;
	cc = r1==r0;
	_dbg astat;
	r7=astat;
	CHECKREG R7, (_UNSET);

	pass;