RISC-V: Cleanup the imply code and test cases for vendor xsf extensions.
[binutils-gdb.git] / sim / testsuite / frv / stbi.cgs
blobf23efc9155a56cbe29c86b9722e0eb50250157eb
1 # frv testcase for stbi $GRk,@($GRi,$GRj)
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global stbi
9 stbi:
10         set_gr_gr       sp,gr20
11         set_mem_limmed  0xdead,0xbeef,sp
12         set_gr_limmed   0xffff,0xffff,gr8
13         stbi            gr8,@(sp,0)
14         test_mem_limmed 0xffad,0xbeef,sp
16         inc_gr_immed    0x801,sp        ; 2049
17         stbi            gr8,@(sp,-2048)
18         test_mem_limmed 0xffff,0xbeef,gr20
20         inc_gr_immed    -4094,sp
21         stbi            gr8,@(sp,0x7ff)
22         test_mem_limmed 0xffff,0xffef,gr20
24         pass