sim: bfin: import testsuite
[deliverable/binutils-gdb.git] / sim / testsuite / sim / bfin / cmpdreg.S
1 # mach: bfin
2
3 #include "test.h"
4 .include "testutils.inc"
5 start
6
7 r0 = 0;
8 ASTAT = R0;
9
10 r0.h =0x8000;
11 r1 = 0;
12 r1.h =0x8000;
13 cc = r1==r0;
14 _dbg astat;
15 r7=astat;
16 CHECKREG R7, (_AC0|_AC0_COPY|_CC|_AZ);
17
18 r7=0;
19 astat=r7;
20 r0.l = 0xffff;
21 r0.h =0x7fff;
22 r1.l = 0xffff;
23 r1.h =0x7fff;
24 cc = r1==r0;
25 _dbg astat;
26 r7=astat;
27 CHECKREG R7, (_AC0|_AC0_COPY|_CC|_AZ);
28
29 r7=0;
30 astat=r7;
31 r0.l = 0;
32 r0.h =0x8000;
33 r1.l = 0xffff;
34 r1.h =0x7fff;
35 cc = r1==r0;
36 _dbg astat;
37 r7=astat;
38 CHECKREG R7, (_UNSET);
39
40 pass;
This page took 0.037325 seconds and 4 git commands to generate.