Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / ldc.cgs
blob4593c31d118f8fd9ddcff06c2cdbd63b6d0ac9c2
1 # frv testcase for ldc @($GRi,$GRj),$GRk
2 # mach: frv
3 # as(frv): -mcpu=frv
5         .include "testutils.inc"
7         start
9         .global ldc
10 ldc:
11         set_mem_limmed  0xdead,0xbeef,sp
12         set_cpr_limmed  0xbeef,0xdead,cpr8
14         set_gr_immed    0,gr7
15         ldc             @(sp,gr7),cpr8
16         test_cpr_limmed 0xdead,0xbeef,cpr8
18         set_cpr_limmed  0xbeef,0xdead,cpr8
19         inc_gr_immed    -4,sp
20         set_gr_immed    4,gr7
21         ldc             @(sp,gr7),cpr8
22         test_cpr_limmed 0xdead,0xbeef,cpr8
24         set_cpr_limmed  0xbeef,0xdead,cpr8
25         inc_gr_immed    8,sp
26         set_gr_immed    -4,gr7
27         ldc             @(sp,gr7),cpr8
28         test_cpr_limmed 0xdead,0xbeef,cpr8
30         pass