]>
Commit | Line | Data |
---|---|---|
cbb38b47 BE |
1 | # sh testcase for fst.d $rm, $disp10x8, $drf -*- Asm -*- |
2 | # mach: all | |
3 | # as: -isa=shmedia | |
4 | # ld: -m shelf64 | |
5 | ||
6 | .include "media/testutils.inc" | |
7 | ||
8 | start | |
9 | ||
10 | .global fstd | |
11 | fstd: | |
12 | movi 0x1020, r0 | |
13 | shlli r0, 8, r0 | |
14 | ori r0, 0x30, r0 | |
15 | shlli r0, 8, r0 | |
16 | ori r0, 0x40, r0 | |
17 | shlli r0, 8, r0 | |
18 | ori r0, 0x50, r0 | |
19 | shlli r0, 8, r0 | |
20 | ori r0, 0x60, r0 | |
21 | shlli r0, 8, r0 | |
22 | ori r0, 0x70, r0 | |
23 | shlli r0, 8, r0 | |
24 | ori r0, 0x80, r0 | |
25 | # Set target address. | |
26 | movi 0x2800, r1 | |
27 | fmov.qd r0, dr0 | |
28 | ||
29 | fst.d r1, 0, dr0 | |
30 | fst.d r1, 8, dr0 | |
31 | fst.d r1, -8, dr0 | |
32 | ||
33 | okay: | |
34 | pass |