Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / ldhfu.cgs
blob0b342e1e7dcb6908920854c2e86945ebc32c8e38
1 # frv testcase for ldhfu @($GRi,$GRj),$GRk
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global ldhfu
9 ldhfu:
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         ldhfu           @(sp,gr7),fr8
16         test_fr_limmed  0x0000,0xdead,fr8
17         test_gr_gr      sp,gr20
19         inc_gr_immed    2,gr20
20         set_gr_immed    2,gr7
21         ldhfu           @(sp,gr7),fr8
22         test_fr_limmed  0x0000,0xbeef,fr8
23         test_gr_gr      sp,gr20
25         inc_gr_immed    -2,sp
26         set_mem_limmed  0xffff,0x0000,sp
27         inc_gr_immed    4,sp
28         set_gr_immed    -2,gr7
29         ldhfu           @(sp,gr7),fr8
30         test_fr_limmed  0x0000,0x0000,fr8
31         test_gr_gr      sp,gr20
33         pass