Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / lduhi.cgs
blobb9896d62f58786560938c088f16a5e9a8cda98c2
1 # frv testcase for lduhi @($GRi,$GRj),$GRk
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global lduhi
9 lduhi:
10         set_mem_limmed  0xdead,0xbeef,sp
11         set_gr_limmed   0xbeef,0xdead,gr8
13         lduhi           @(sp,0),gr8
14         test_gr_limmed  0x0000,0xdead,gr8
16         lduhi           @(sp,2),gr8
17         test_gr_limmed  0x0000,0xbeef,gr8
19         set_mem_limmed  0xffff,0x0000,sp
20         inc_gr_immed    4,sp
21         lduhi           @(sp,-2),gr8
22         test_gr_limmed  0x0000,0x0000,gr8
24         pass