Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / ldqi.cgs
blob64d66f2f766bda7775300da764ef4542c8ab9179
1 # frv testcase for ldqi @($GRi,$GRj),$GRk
2 # mach: frv
3 # as(frv): -mcpu=frv
5         .include "testutils.inc"
7         start
9         .global ldqi
10 ldqi:
11         set_mem_limmed  0xdead,0xbeef,sp
12         inc_gr_immed    -4,sp
13         set_mem_limmed  0xbeef,0xdead,sp
14         inc_gr_immed    -4,sp
15         set_mem_limmed  0x1234,0x5678,sp
16         inc_gr_immed    -4,sp
17         set_mem_limmed  0x9abc,0xdef0,sp
18         set_gr_limmed   0xdead,0xbeef,gr8
19         set_gr_limmed   0xbeef,0xdead,gr9
20         set_gr_limmed   0x1234,0x5678,gr10
21         set_gr_limmed   0x9abc,0xdef0,gr11
23         ldqi            @(sp,0),gr8
24         test_gr_limmed  0x9abc,0xdef0,gr8
25         test_gr_limmed  0x1234,0x5678,gr9
26         test_gr_limmed  0xbeef,0xdead,gr10
27         test_gr_limmed  0xdead,0xbeef,gr11
29         set_gr_limmed   0xdead,0xbeef,gr8
30         set_gr_limmed   0xbeef,0xdead,gr9
31         set_gr_limmed   0x1234,0x5678,gr10
32         set_gr_limmed   0x9abc,0xdef0,gr11
33         inc_gr_immed    -16,sp
34         ldqi            @(sp,16),gr8
35         test_gr_limmed  0x9abc,0xdef0,gr8
36         test_gr_limmed  0x1234,0x5678,gr9
37         test_gr_limmed  0xbeef,0xdead,gr10
38         test_gr_limmed  0xdead,0xbeef,gr11
40         set_gr_limmed   0xdead,0xbeef,gr8
41         set_gr_limmed   0xbeef,0xdead,gr9
42         set_gr_limmed   0x1234,0x5678,gr10
43         set_gr_limmed   0x9abc,0xdef0,gr11
44         inc_gr_immed    32,sp
45         ldqi            @(sp,-16),gr8
46         test_gr_limmed  0x9abc,0xdef0,gr8
47         test_gr_limmed  0x1234,0x5678,gr9
48         test_gr_limmed  0xbeef,0xdead,gr10
49         test_gr_limmed  0xdead,0xbeef,gr11
51         pass