RISC-V: Cleanup the imply code and test cases for vendor xsf extensions.
[binutils-gdb.git] / sim / testsuite / frv / lddu.cgs
blob5b2ead177205342ab2f148ab669c22b8411657bc
1 # frv testcase for lddu @($GRi,$GRj),$GRk
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global lddu
9 lddu:
10         set_mem_limmed  0xdead,0xbeef,sp
11         inc_gr_immed    -4,sp
12         set_mem_limmed  0xbeef,0xdead,sp
13         set_gr_gr       sp,gr20
14         set_gr_limmed   0xdead,0xbeef,gr8
15         set_gr_limmed   0xbeef,0xdead,gr9
17         set_gr_immed    0,gr7
18         lddu            @(sp,gr7),gr8
19         test_gr_limmed  0xbeef,0xdead,gr8
20         test_gr_limmed  0xdead,0xbeef,gr9
21         test_gr_gr      sp,gr20
23         set_gr_limmed   0xdead,0xbeef,gr8
24         set_gr_limmed   0xbeef,0xdead,gr9
25         inc_gr_immed    -8,sp
26         set_gr_immed    8,gr7
27         lddu            @(sp,gr7),gr8
28         test_gr_limmed  0xbeef,0xdead,gr8
29         test_gr_limmed  0xdead,0xbeef,gr9
30         test_gr_gr      sp,gr20
32         set_gr_limmed   0xdead,0xbeef,gr8
33         set_gr_limmed   0xbeef,0xdead,gr9
34         inc_gr_immed    8,sp
35         set_gr_immed    -8,gr7
36         lddu            @(sp,gr7),gr8
37         test_gr_limmed  0xbeef,0xdead,gr8
38         test_gr_limmed  0xdead,0xbeef,gr9
39         test_gr_gr      sp,gr20
41         set_gr_limmed   0xdead,0xbeef,gr8
42         set_gr_limmed   0xbeef,0xdead,gr9
43         inc_gr_immed    8,sp
44         set_gr_immed    -8,gr7
45         set_gr_gr       sp,gr8
46         lddu            @(gr8,gr7),gr8
47         test_gr_limmed  0xbeef,0xdead,gr8
48         test_gr_limmed  0xdead,0xbeef,gr9
50         pass