sim: bfin: import testsuite
[deliverable/binutils-gdb.git] / sim / testsuite / sim / bfin / a12.s
1 // Test SAA
2 # mach: bfin
3
4 .include "testutils.inc"
5 start
6
7 I0 = 0;
8 I1 = 0;
9
10 imm32 R0, 0x04030201;
11 imm32 R2, 0x04030201;
12 A1 = A0 = 0;
13 saa(r1:0,r3:2);
14 R0 = A0.w;
15 R1 = A1.w;
16 CHECKREG R0, 0;
17 CHECKREG R1, 0;
18
19 imm32 R0, 0x00000201;
20 imm32 R2, 0x00020102;
21 A1 = A0 = 0;
22 saa(r1:0,r3:2);
23 saa(r1:0,r3:2);
24 saa(r1:0,r3:2);
25 R0 = A0.w;
26 R1 = A1.w;
27 CHECKREG R0, 0x00030003;
28 CHECKREG R1, 0x00000006;
29
30 imm32 R0, 0x000300ff;
31 imm32 R2, 0x0001ff00;
32 A1 = A0 = 0;
33 saa(r1:0,r3:2);
34 saa(r1:0,r3:2);
35 R0 = A0.w;
36 R1 = A1.w;
37 CHECKREG R0, 0x1fe01fe;
38 CHECKREG R1, 0x0000004;
39
40 pass
This page took 0.033157 seconds and 4 git commands to generate.