1 # frv testcase for cldhfu @($GRi,$GRj),$FRk,$CCi,$cond
4 .include "testutils.inc"
10 set_spr_immed 0x1b1b,cccr
14 set_mem_limmed 0xdead,0xbeef,sp
15 set_fr_iimmed 0xbeef,0xdead,fr8
18 cldhfu @(sp,gr7),fr8,cc0,1
19 test_fr_limmed 0x0000,0xdead,fr8
24 cldhfu @(sp,gr7),fr8,cc0,1
25 test_fr_limmed 0x0000,0xbeef,fr8
29 set_mem_limmed 0xffff,0x0000,sp
32 cldhfu @(sp,gr7),fr8,cc4,1
33 test_fr_limmed 0x0000,0x0000,fr8
38 set_mem_limmed 0xdead,0xbeef,sp
39 set_fr_iimmed 0xbeef,0xdead,fr8
42 cldhfu @(sp,gr7),fr8,cc0,0
43 test_fr_limmed 0xbeef,0xdead,fr8
47 cldhfu @(sp,gr7),fr8,cc0,0
48 test_fr_limmed 0xbeef,0xdead,fr8
52 set_mem_limmed 0xffff,0x0000,sp
55 cldhfu @(sp,gr7),fr8,cc4,0
56 test_fr_limmed 0xbeef,0xdead,fr8
61 set_mem_limmed 0xdead,0xbeef,sp
62 set_fr_iimmed 0xbeef,0xdead,fr8
65 cldhfu @(sp,gr7),fr8,cc1,0
66 test_fr_limmed 0x0000,0xdead,fr8
71 cldhfu @(sp,gr7),fr8,cc1,0
72 test_fr_limmed 0x0000,0xbeef,fr8
76 set_mem_limmed 0xffff,0x0000,sp
79 cldhfu @(sp,gr7),fr8,cc5,0
80 test_fr_limmed 0x0000,0x0000,fr8
85 set_mem_limmed 0xdead,0xbeef,sp
86 set_fr_iimmed 0xbeef,0xdead,fr8
89 cldhfu @(sp,gr7),fr8,cc1,1
90 test_fr_limmed 0xbeef,0xdead,fr8
94 cldhfu @(sp,gr7),fr8,cc1,1
95 test_fr_limmed 0xbeef,0xdead,fr8
99 set_mem_limmed 0xffff,0x0000,sp
102 cldhfu @(sp,gr7),fr8,cc5,1
103 test_fr_limmed 0xbeef,0xdead,fr8
108 set_mem_limmed 0xdead,0xbeef,sp
109 set_fr_iimmed 0xbeef,0xdead,fr8
112 cldhfu @(sp,gr7),fr8,cc2,0
113 test_fr_limmed 0xbeef,0xdead,fr8
117 cldhfu @(sp,gr7),fr8,cc2,1
118 test_fr_limmed 0xbeef,0xdead,fr8
122 set_mem_limmed 0xffff,0x0000,sp
125 cldhfu @(sp,gr7),fr8,cc6,0
126 test_fr_limmed 0xbeef,0xdead,fr8
131 set_mem_limmed 0xdead,0xbeef,sp
132 set_fr_iimmed 0xbeef,0xdead,fr8
135 cldhfu @(sp,gr7),fr8,cc3,1
136 test_fr_limmed 0xbeef,0xdead,fr8
140 cldhfu @(sp,gr7),fr8,cc3,0
141 test_fr_limmed 0xbeef,0xdead,fr8
145 set_mem_limmed 0xffff,0x0000,sp
148 cldhfu @(sp,gr7),fr8,cc7,1
149 test_fr_limmed 0xbeef,0xdead,fr8