1 # frv testcase for cldubu @($GRi,$GRj),$GRk,$CCi,$cond
4 .include "testutils.inc"
10 set_spr_immed 0x1b1b,cccr
13 set_mem_limmed 0xdead,0xbeef,sp
14 set_gr_limmed 0xbeef,0xdead,gr8
18 cldubu @(sp,gr7),gr8,cc0,1
19 test_gr_limmed 0x0000,0x00de,gr8
24 cldubu @(sp,gr7),gr8,cc0,1
25 test_gr_limmed 0x0000,0x00ad,gr8
30 set_mem_limmed 0xffff,0xff00,sp
33 cldubu @(sp,gr7),gr8,cc4,1
34 test_gr_limmed 0x0000,0x0000,gr8
37 set_mem_limmed 0xdead,0xbeef,sp
38 set_gr_limmed 0xbeef,0xdead,gr8
42 cldubu @(sp,gr7),gr8,cc0,0
43 test_gr_limmed 0xbeef,0xdead,gr8
47 cldubu @(sp,gr7),gr8,cc0,0
48 test_gr_limmed 0xbeef,0xdead,gr8
52 set_mem_limmed 0xffff,0xff00,sp
55 cldubu @(sp,gr7),gr8,cc4,0
56 test_gr_limmed 0xbeef,0xdead,gr8
59 set_mem_limmed 0xdead,0xbeef,sp
60 set_gr_limmed 0xbeef,0xdead,gr8
64 cldubu @(sp,gr7),gr8,cc1,0
65 test_gr_limmed 0x0000,0x00de,gr8
70 cldubu @(sp,gr7),gr8,cc1,0
71 test_gr_limmed 0x0000,0x00ad,gr8
76 set_mem_limmed 0xffff,0xff00,sp
79 cldubu @(sp,gr7),gr8,cc5,0
80 test_gr_limmed 0x0000,0x0000,gr8
83 set_mem_limmed 0xdead,0xbeef,sp
84 set_gr_limmed 0xbeef,0xdead,gr8
88 cldubu @(sp,gr7),gr8,cc1,1
89 test_gr_limmed 0xbeef,0xdead,gr8
93 cldubu @(sp,gr7),gr8,cc1,1
94 test_gr_limmed 0xbeef,0xdead,gr8
98 set_mem_limmed 0xffff,0xff00,sp
101 cldubu @(sp,gr7),gr8,cc5,1
102 test_gr_limmed 0xbeef,0xdead,gr8
105 set_mem_limmed 0xdead,0xbeef,sp
106 set_gr_limmed 0xbeef,0xdead,gr8
110 cldubu @(sp,gr7),gr8,cc2,0
111 test_gr_limmed 0xbeef,0xdead,gr8
115 cldubu @(sp,gr7),gr8,cc2,1
116 test_gr_limmed 0xbeef,0xdead,gr8
120 set_mem_limmed 0xffff,0xff00,sp
123 cldubu @(sp,gr7),gr8,cc6,0
124 test_gr_limmed 0xbeef,0xdead,gr8
127 set_mem_limmed 0xdead,0xbeef,sp
128 set_gr_limmed 0xbeef,0xdead,gr8
132 cldubu @(sp,gr7),gr8,cc3,1
133 test_gr_limmed 0xbeef,0xdead,gr8
137 cldubu @(sp,gr7),gr8,cc3,0
138 test_gr_limmed 0xbeef,0xdead,gr8
142 set_mem_limmed 0xffff,0xff00,sp
145 cldubu @(sp,gr7),gr8,cc7,1
146 test_gr_limmed 0xbeef,0xdead,gr8
149 set_mem_limmed 0xdead,0xbeef,sp
152 cldubu @(gr8,gr7),gr8,cc0,1
153 test_gr_limmed 0x0000,0x00ad,gr8