daily update
[external/binutils.git] / sim / testsuite / sim / bfin / random_0005.S
1 # Test for ASTAT AZ bit update with 16 bit add and sub insns
2 # mach: bfin
3
4 #include "test.h"
5 .include "testutils.inc"
6
7         start
8
9         dmm32 ASTAT, (0x10a04e10 | _VS | _V | _AV1S | _AQ | _CC | _V_COPY);
10         imm32 R3, 0x05fd7405;
11         imm32 R7, 0x7fff7fff;
12         R3.H = R7.L - R7.H (NS);
13         checkreg R3, 0x00007405;
14         checkreg ASTAT, (0x10a04e10 | _VS | _AV1S | _AC0 | _AQ | _CC | _AC0_COPY | _AZ);
15
16         dmm32 ASTAT, (0x64200e10 | _VS | _AV0S | _AC1 | _AC0 | _AZ);
17         imm32 R1, 0x2c388489;
18         imm32 R3, 0x38f39dcc;
19         imm32 R5, 0x27ed8efa;
20         R3.H = R1.L + R5.L (NS);
21         checkreg R3, 0x13839dcc;
22         checkreg ASTAT, (0x64200e10 | _VS | _V | _AV0S | _AC1 | _AC0 | _V_COPY | _AC0_COPY);
23
24         pass