RISC-V: Cleanup the imply code and test cases for vendor xsf extensions.
[binutils-gdb.git] / sim / testsuite / frv / ldi.cgs
blobf36b95d9f58b61ec9a22266660e929b61b8aaed1
1 # frv testcase for ldi @($GRi,$GRj),$GRk
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global ldi
9 ldi:
10         set_mem_limmed  0xdead,0xbeef,sp
11         set_gr_limmed   0xbeef,0xdead,gr8
13         ldi             @(sp,0),gr8
14         test_gr_limmed  0xdead,0xbeef,gr8
16         set_gr_limmed   0xbeef,0xdead,gr8
17         inc_gr_immed    -4,sp
18         ldi             @(sp,4),gr8
19         test_gr_limmed  0xdead,0xbeef,gr8
21         set_gr_limmed   0xbeef,0xdead,gr8
22         inc_gr_immed    8,sp
23         ldi             @(sp,-4),gr8
24         test_gr_limmed  0xdead,0xbeef,gr8
26         pass