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