Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / ldqc.cgs
blob64b6a6afa61287da885fbb4b4eb49900482ea6f2
1 # frv testcase for ldqc @($GRi,$GRj),$GRk
2 # mach: frv
4         .include "testutils.inc"
6         start
8         .global ldqc
9 ldqc:
10         set_mem_limmed  0xdead,0xbeef,sp
11         inc_gr_immed    -4,sp
12         set_mem_limmed  0xbeef,0xdead,sp
13         inc_gr_immed    -4,sp
14         set_mem_limmed  0x1234,0x5678,sp
15         inc_gr_immed    -4,sp
16         set_mem_limmed  0x9abc,0xdef0,sp
17         set_cpr_limmed  0xdead,0xbeef,cpr8
18         set_cpr_limmed  0xbeef,0xdead,cpr9
19         set_cpr_limmed  0x1234,0x5678,cpr10
20         set_cpr_limmed  0x9abc,0xdef0,cpr11
22         set_gr_immed    0,gr7
23         ;loading into cpr0 is business as usual
24         ldqc            @(sp,gr7),cpr0
25         test_cpr_limmed 0x9abc,0xdef0,cpr0
26         test_cpr_limmed 0x1234,0x5678,cpr1
27         test_cpr_limmed 0xbeef,0xdead,cpr2
28         test_cpr_limmed 0xdead,0xbeef,cpr3
30         ldqc            @(sp,gr7),cpr8
31         test_cpr_limmed 0x9abc,0xdef0,cpr8
32         test_cpr_limmed 0x1234,0x5678,cpr9
33         test_cpr_limmed 0xbeef,0xdead,cpr10
34         test_cpr_limmed 0xdead,0xbeef,cpr11
36         set_cpr_limmed  0xdead,0xbeef,cpr8
37         set_cpr_limmed  0xbeef,0xdead,cpr9
38         set_cpr_limmed  0x1234,0x5678,cpr10
39         set_cpr_limmed  0x9abc,0xdef0,cpr11
40         inc_gr_immed    -16,sp
41         set_gr_immed    16,gr7
42         ldqc            @(sp,gr7),cpr8
43         test_cpr_limmed 0x9abc,0xdef0,cpr8
44         test_cpr_limmed 0x1234,0x5678,cpr9
45         test_cpr_limmed 0xbeef,0xdead,cpr10
46         test_cpr_limmed 0xdead,0xbeef,cpr11
48         set_cpr_limmed  0xdead,0xbeef,cpr8
49         set_cpr_limmed  0xbeef,0xdead,cpr9
50         set_cpr_limmed  0x1234,0x5678,cpr10
51         set_cpr_limmed  0x9abc,0xdef0,cpr11
52         inc_gr_immed    32,sp
53         set_gr_immed    -16,gr7
54         ldqc            @(sp,gr7),cpr8
55         test_cpr_limmed 0x9abc,0xdef0,cpr8
56         test_cpr_limmed 0x1234,0x5678,cpr9
57         test_cpr_limmed 0xbeef,0xdead,cpr10
58         test_cpr_limmed 0xdead,0xbeef,cpr11
60         pass