]>
Commit | Line | Data |
---|---|---|
cbb38b47 BE |
1 | # sh testcase for madd.l $rm, $rn, $rd -*- Asm -*- |
2 | # mach: all | |
3 | # as: -isa=shmedia | |
4 | # ld: -m shelf64 | |
5 | ||
6 | .include "media/testutils.inc" | |
7 | ||
8 | start | |
9 | ||
10 | init: | |
11 | pta wrong, tr0 | |
12 | ||
13 | maddl: | |
14 | # Load { 1 2 } into r0. | |
15 | _packl 1, 2, r0 | |
16 | # Load { 3 4 } into r1. | |
17 | _packl 3, 4, r1 | |
18 | ||
19 | # Add slices to produce { 4 6 }. | |
20 | madd.l r0, r1, r2 | |
21 | ||
22 | _packl 4, 6, r3 | |
23 | bne r2, r3, tr0 | |
24 | ||
25 | okay: | |
26 | pass | |
27 | ||
28 | wrong: | |
29 | fail |