Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / lddc.cgs
blobe01a2146ef149a4e6033af940fab5b923529146e
1 # frv testcase for lddc @($GRi,$GRj),$GRk
2 # mach: frv
3 # as(frv): -mcpu=frv
5         .include "testutils.inc"
7         start
9         .global lddc
10 lddc:
11         set_mem_limmed  0xdead,0xbeef,sp
12         inc_gr_immed    -4,sp
13         set_mem_limmed  0xbeef,0xdead,sp
14         set_cpr_limmed  0xdead,0xbeef,cpr8
15         set_cpr_limmed  0xbeef,0xdead,cpr9
17         set_gr_immed    0,gr7
18         ; loading into cpr0 is business as usual
19         set_cpr_limmed  0xdead,0xbeef,cpr0
20         set_cpr_limmed  0xbeef,0xdead,cpr1
21         lddc            @(sp,gr7),cpr0
22         test_cpr_limmed 0xbeef,0xdead,cpr0
23         test_cpr_limmed 0xdead,0xbeef,cpr1
25         lddc            @(sp,gr7),cpr8
26         test_cpr_limmed 0xbeef,0xdead,cpr8
27         test_cpr_limmed 0xdead,0xbeef,cpr9
29         set_cpr_limmed  0xdead,0xbeef,cpr8
30         set_cpr_limmed  0xbeef,0xdead,cpr9
31         inc_gr_immed    -8,sp
32         set_gr_immed    8,gr7
33         lddc            @(sp,gr7),cpr8
34         test_cpr_limmed 0xbeef,0xdead,cpr8
35         test_cpr_limmed 0xdead,0xbeef,cpr9
37         set_cpr_limmed  0xdead,0xbeef,cpr8
38         set_cpr_limmed  0xbeef,0xdead,cpr9
39         inc_gr_immed    16,sp
40         set_gr_immed    -8,gr7
41         lddc            @(sp,gr7),cpr8
42         test_cpr_limmed 0xbeef,0xdead,cpr8
43         test_cpr_limmed 0xdead,0xbeef,cpr9
45         pass