Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / stcu.cgs
blobeb9e6c5efa14e5477b44002d3c65ea8947be86e0
1 # frv testcase for stcu $CPRk,@($GRi,$GRj)
2 # mach: frv
3 # as(frv): -mcpu=frv
5         .include "testutils.inc"
7         start
9         .global stcu
10 stcu:
11         set_gr_gr       sp,gr20
12         set_mem_limmed  0xdead,0xbeef,sp
13         set_gr_immed    0,gr7
14         set_cpr_limmed  0xffff,0xffff,cpr8
15         stcu            cpr8,@(sp,gr7)
16         test_mem_limmed 0xffff,0xffff,sp
17         test_gr_gr      sp,gr20
19         inc_gr_immed    -4,sp
20         set_gr_immed    4,gr7
21         set_cpr_limmed  0x1234,0x5678,cpr8
22         stcu            cpr8,@(sp,gr7)
23         test_mem_limmed 0x1234,0x5678,sp
24         test_gr_gr      sp,gr20
26         inc_gr_immed    4,sp
27         set_gr_immed    -4,gr7
28         set_cpr_limmed  0x9abc,0xdef0,cpr8
29         stcu            cpr8,@(sp,gr7)
30         test_mem_limmed 0x9abc,0xdef0,sp
31         test_gr_gr      sp,gr20
33         pass