1 # frv testcase for clduh @($GRi,$GRj),$GRk,$CCi,$cond
4 .include "testutils.inc"
10 set_spr_immed 0x1b1b,cccr
12 set_mem_limmed 0xdead,0xbeef,sp
13 set_gr_limmed 0xbeef,0xdead,gr8
16 clduh @(sp,gr7),gr8,cc0,1
17 test_gr_limmed 0x0000,0xdead,gr8
20 clduh @(sp,gr7),gr8,cc0,1
21 test_gr_limmed 0x0000,0xbeef,gr8
23 set_mem_limmed 0xffff,0x0000,sp
26 clduh @(sp,gr7),gr8,cc4,1
27 test_gr_limmed 0x0000,0x0000,gr8
29 set_mem_limmed 0xdead,0xbeef,sp
30 set_gr_limmed 0xbeef,0xdead,gr8
33 clduh @(sp,gr7),gr8,cc0,0
34 test_gr_limmed 0xbeef,0xdead,gr8
37 clduh @(sp,gr7),gr8,cc0,0
38 test_gr_limmed 0xbeef,0xdead,gr8
40 set_mem_limmed 0xffff,0x0000,sp
43 clduh @(sp,gr7),gr8,cc4,0
44 test_gr_limmed 0xbeef,0xdead,gr8
46 set_mem_limmed 0xdead,0xbeef,sp
47 set_gr_limmed 0xbeef,0xdead,gr8
50 clduh @(sp,gr7),gr8,cc1,0
51 test_gr_limmed 0x0000,0xdead,gr8
54 clduh @(sp,gr7),gr8,cc1,0
55 test_gr_limmed 0x0000,0xbeef,gr8
57 set_mem_limmed 0xffff,0x0000,sp
60 clduh @(sp,gr7),gr8,cc5,0
61 test_gr_limmed 0x0000,0x0000,gr8
63 set_mem_limmed 0xdead,0xbeef,sp
64 set_gr_limmed 0xbeef,0xdead,gr8
67 clduh @(sp,gr7),gr8,cc1,1
68 test_gr_limmed 0xbeef,0xdead,gr8
71 clduh @(sp,gr7),gr8,cc1,1
72 test_gr_limmed 0xbeef,0xdead,gr8
74 set_mem_limmed 0xffff,0x0000,sp
77 clduh @(sp,gr7),gr8,cc5,1
78 test_gr_limmed 0xbeef,0xdead,gr8
80 set_mem_limmed 0xdead,0xbeef,sp
81 set_gr_limmed 0xbeef,0xdead,gr8
84 clduh @(sp,gr7),gr8,cc2,0
85 test_gr_limmed 0xbeef,0xdead,gr8
88 clduh @(sp,gr7),gr8,cc2,0
89 test_gr_limmed 0xbeef,0xdead,gr8
91 set_mem_limmed 0xffff,0x0000,sp
94 clduh @(sp,gr7),gr8,cc6,1
95 test_gr_limmed 0xbeef,0xdead,gr8
97 set_mem_limmed 0xdead,0xbeef,sp
98 set_gr_limmed 0xbeef,0xdead,gr8
101 clduh @(sp,gr7),gr8,cc3,0
102 test_gr_limmed 0xbeef,0xdead,gr8
105 clduh @(sp,gr7),gr8,cc3,0
106 test_gr_limmed 0xbeef,0xdead,gr8
108 set_mem_limmed 0xffff,0x0000,sp
111 clduh @(sp,gr7),gr8,cc7,1
112 test_gr_limmed 0xbeef,0xdead,gr8