Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / ldsbi.cgs
blobc90a129f317ab7542694b2f71d82bfa2fa60b577
1 # frv testcase for ldsbi @($GRi,$GRj),$GRk
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global ldsbi
9 ldsbi:
10         set_mem_limmed  0xdead,0xbeef,sp
11         set_gr_limmed   0xbeef,0xdead,gr8
13         ldsbi           @(sp,0),gr8
14         test_gr_limmed  0xffff,0xffde,gr8
16         ldsbi           @(sp,1),gr8
17         test_gr_limmed  0xffff,0xffad,gr8
19         set_mem_limmed  0xffff,0xff00,sp
20         inc_gr_immed    4,sp
21         ldsbi           @(sp,-1),gr8
22         test_gr_immed   0,gr8
24         pass