]>
Commit | Line | Data |
---|---|---|
49634642 NC |
1 | # XSCALE testcase for MIA |
2 | # mach: xscale | |
3 | # as: -mcpu=xscale | |
4 | ||
5 | .include "testutils.inc" | |
6 | ||
7 | start | |
8 | ||
9 | .global mia | |
10 | mia: | |
11 | # Enable access to CoProcessors 0 & 1 before | |
12 | # we attempt these instructions. | |
13 | ||
14 | mvi_h_gr r1, 3 | |
15 | mcr p15, 0, r1, cr15, cr1, 0 | |
16 | ||
17 | # Test Multilply Accumulate | |
18 | ||
19 | mvi_h_gr r0, 0x11223344 | |
20 | mvi_h_gr r1, 0x55667788 | |
21 | mvi_h_gr r2, 0x12345678 | |
22 | mvi_h_gr r3, 0x9abcdef0 | |
23 | ||
24 | mar acc0, r0, r1 | |
25 | ||
26 | mia acc0, r2, r3 | |
27 | ||
28 | mra r0, r1, acc0 | |
29 | ||
30 | test_h_gr r0, 0x354f53c4 | |
31 | test_h_gr r1, 0x4e330b5e | |
32 | test_h_gr r2, 0x12345678 | |
33 | test_h_gr r3, 0x9abcdef0 | |
34 | ||
35 | pass |