Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / stbfi.cgs
blobcfea70867f3fe6d58c1276c968e935ba2115ab0b
1 # frv testcase for stbfi $FRk,@($GRi,$GRj)
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global stbfi
9 stbfi:
10         set_gr_gr       sp,gr20
11         set_mem_limmed  0xdead,0xbeef,sp
12         set_fr_iimmed   0xffff,0xffff,fr8
13         stbfi           fr8,@(sp,0)
14         test_mem_limmed 0xffad,0xbeef,sp
16         inc_gr_immed    0x801,sp        ; 2049
17         stbfi           fr8,@(sp,-2048)
18         test_mem_limmed 0xffff,0xbeef,gr20
20         inc_gr_immed    -4094,sp
21         stbfi           fr8,@(sp,0x7ff)
22         test_mem_limmed 0xffff,0xffef,gr20
24         pass