xref: /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/bfin/cmpacc.s (revision 4b169a6ba595ae283ca507b26b15fdff40495b1c)
1# Blackfin testcase for the accumulator and compares
2# mach: bfin
3
4	.include "testutils.inc"
5
6	start
7
8r7=0;
9astat=r7;
10r7.l=0x80;
11A1.x=r7.l;
12r0 = 0;
13A1.w=r0;
14r1.l = 0xffff;
15r1.h =0xffff;
16A0.w=r1;
17r7.l=0x7f;
18A0.x=r7.l;
19#dbg A0;
20#dbg A1;
21#dbg astat;
22cc = A0==A1;
23#dbg astat;
24r7=astat;
25dbga (r7.h, 0x0);
26dbga (r7.l, 0x0);
27astat=r0;
28#dbg astat;
29r7.l=0x80;
30A0.x=r7.l;
31r0 = 0;
32A0.w=r0;
33r1.l = 0xffff;
34r1.h =0xffff;
35A1.w=r1;
36r7.l=0x7f;
37A1.x=r7.l;
38cc = A0<A1;
39#dbg astat;
40r7=astat;
41dbga (r7.h, 0x0);
42dbga (r7.l, 0x1026);
43astat=r0;
44cc = A0<=A1;
45#dbg astat;
46r7=astat;
47dbga (r7.h, 0x0);
48dbga (r7.l, 0x1026);
49
50pass
51