Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / nlddfu.cgs
blobd45c995cd2c3d8e2e44ac5a8d64746a7cca5eee7
1 # frv testcase for nlddfu @($GRi,$GRj),$GRk
2 # mach: frv
4         .include "testutils.inc"
6         start
8         .global nlddfu
9 nlddfu:
10         set_mem_limmed  0xdead,0xbeef,sp
11         inc_gr_immed    -4,sp
12         set_mem_limmed  0xbeef,0xdead,sp
13         set_gr_gr       sp,gr20
14         set_fr_iimmed   0xdead,0xbeef,fr8
15         set_fr_iimmed   0xbeef,0xdead,fr9
17         set_gr_immed    0,gr7
18         nlddfu          @(sp,gr7),fr8
19         test_fr_limmed  0xbeef,0xdead,fr8
20         test_fr_limmed  0xdead,0xbeef,fr9
21         test_gr_gr      sp,gr20
22         test_spr_limmed 0xc8a0,0x0001,nesr0
23         test_spr_gr     neear0,gr20
24         test_spr_limmed 0x0000,0x0000,fner1
25         test_spr_limmed 0x0000,0x0000,fner0
27         set_fr_iimmed   0xdead,0xbeef,fr8
28         set_fr_iimmed   0xbeef,0xdead,fr9
29         inc_gr_immed    -8,sp
30         set_gr_immed    8,gr7
31         nlddfu          @(sp,gr7),fr8
32         test_fr_limmed  0xbeef,0xdead,fr8
33         test_fr_limmed  0xdead,0xbeef,fr9
34         test_gr_gr      sp,gr20
35         test_spr_limmed 0xc8a0,0x0401,nesr1
36         test_spr_gr     neear1,gr20
37         test_spr_limmed 0x0000,0x0000,fner1
38         test_spr_limmed 0x0000,0x0000,fner0
40         set_fr_iimmed   0xdead,0xbeef,fr8
41         set_fr_iimmed   0xbeef,0xdead,fr9
42         inc_gr_immed    8,sp
43         set_gr_immed    -8,gr7
44         nlddfu          @(sp,gr7),fr8
45         test_fr_limmed  0xbeef,0xdead,fr8
46         test_fr_limmed  0xdead,0xbeef,fr9
47         test_gr_gr      sp,gr20
48         test_spr_limmed 0xc8a0,0x0801,nesr2
49         test_spr_gr     neear2,gr20
50         test_spr_limmed 0x0000,0x0000,fner1
51         test_spr_limmed 0x0000,0x0000,fner0
53         pass