Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / ldbfu.cgs
blob3cbfb91d95928ea3c9efb120b3ae5cfe4cd472fd
1 # frv testcase for ldbfu @($GRi,$GRj),$GRk
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global ldbfu
9 ldbfu:
10         set_gr_gr       sp,gr20
11         set_mem_limmed  0xdead,0xbeef,sp
12         set_fr_iimmed   0xbeef,0xdead,fr8
14         set_gr_immed    0,gr7
15         ldbfu           @(sp,gr7),fr8
16         test_fr_limmed  0x0000,0x00de,fr8
17         test_gr_gr      sp,gr20
19         inc_gr_immed    1,gr20
20         set_gr_immed    1,gr7
21         ldbfu           @(sp,gr7),fr8
22         test_fr_limmed  0x0000,0x00ad,fr8
23         test_gr_gr      sp,gr20
25         inc_gr_immed    2,gr20
26         inc_gr_immed    -1,sp
27         set_mem_limmed  0xffff,0xff00,sp
28         inc_gr_immed    4,sp
29         set_gr_immed    -1,gr7
30         ldbfu           @(sp,gr7),fr8
31         test_fr_limmed  0x0000,0x0000,fr8
32         test_gr_gr      sp,gr20
34         pass