RISC-V: Cleanup the imply code and test cases for vendor xsf extensions.
[binutils-gdb.git] / sim / testsuite / frv / ldfu.cgs
blob08f67db43756017bc6ec738bca18045fd8b1ccb2
1 # frv testcase for ldfu @($GRi,$GRj),$GRk
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global ldfu
9 ldfu:
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         ldfu            @(sp,gr7),fr8
16         test_fr_limmed  0xdead,0xbeef,fr8
17         test_gr_gr      sp,gr20
19         set_fr_iimmed   0xbeef,0xdead,fr8
20         inc_gr_immed    -4,sp
21         set_gr_immed    4,gr7
22         ldfu            @(sp,gr7),fr8
23         test_fr_limmed  0xdead,0xbeef,fr8
24         test_gr_gr      sp,gr20
26         set_fr_iimmed   0xbeef,0xdead,fr8
27         inc_gr_immed    4,sp
28         set_gr_immed    -4,gr7
29         ldfu            @(sp,gr7),fr8
30         test_fr_limmed  0xdead,0xbeef,fr8
31         test_gr_gr      sp,gr20
33         pass