RISC-V: Cleanup the imply code and test cases for vendor xsf extensions.
[binutils-gdb.git] / sim / testsuite / frv / ldbfi.cgs
blob7e918069df99aa19415d9399aa2caafcf42fad73
1 # frv testcase for ldbfi @($GRi,$GRj),$GRk
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global ldbfi
9 ldbfi:
10         set_mem_limmed  0xdead,0xbeef,sp
11         set_fr_iimmed   0xbeef,0xdead,fr8
13         ldbfi           @(sp,0),fr8
14         test_fr_limmed  0x0000,0x00de,fr8
16         ldbfi           @(sp,1),fr8
17         test_fr_limmed  0x0000,0x00ad,fr8
19         set_mem_limmed  0xffff,0xff00,sp
20         inc_gr_immed    4,sp
21         ldbfi           @(sp,-1),fr8
22         test_fr_limmed  0x0000,0x0000,fr8
24         pass