1 # frv testcase for csthfu $FRk,@($GRi,$GRj),$CCi,$cond
4 .include "testutils.inc"
10 set_spr_immed 0x1b1b,cccr
13 set_mem_limmed 0xdead,0xbeef,sp
16 set_fr_iimmed 0x1111,0xffff,fr8
17 csthfu fr8,@(sp,gr7),cc0,1
18 test_mem_limmed 0xffff,0xbeef,gr20
23 set_fr_iimmed 0xffff,0xaaaa,fr8
24 csthfu fr8,@(sp,gr7),cc0,1
25 test_mem_limmed 0xffff,0xaaaa,gr20
30 set_fr_iimmed 0x2222,0xbbbb,fr8
31 csthfu fr8,@(sp,gr7),cc4,1
32 test_mem_limmed 0xffff,0xbbbb,gr20
36 set_mem_limmed 0xdead,0xbeef,sp
39 set_fr_iimmed 0x1111,0xffff,fr8
40 csthfu fr8,@(sp,gr7),cc0,0
41 test_mem_limmed 0xdead,0xbeef,gr20
45 set_fr_iimmed 0xffff,0xaaaa,fr8
46 csthfu fr8,@(sp,gr7),cc0,0
47 test_mem_limmed 0xdead,0xbeef,gr20
53 set_fr_iimmed 0x2222,0xbbbb,fr8
54 csthfu fr8,@(sp,gr7),cc4,0
55 test_mem_limmed 0xdead,0xbeef,gr20
59 set_mem_limmed 0xdead,0xbeef,sp
62 set_fr_iimmed 0x1111,0xffff,fr8
63 csthfu fr8,@(sp,gr7),cc1,0
64 test_mem_limmed 0xffff,0xbeef,gr20
69 set_fr_iimmed 0xffff,0xaaaa,fr8
70 csthfu fr8,@(sp,gr7),cc1,0
71 test_mem_limmed 0xffff,0xaaaa,gr20
76 set_fr_iimmed 0x2222,0xbbbb,fr8
77 csthfu fr8,@(sp,gr7),cc5,0
78 test_mem_limmed 0xffff,0xbbbb,gr20
82 set_mem_limmed 0xdead,0xbeef,sp
85 set_fr_iimmed 0x1111,0xffff,fr8
86 csthfu fr8,@(sp,gr7),cc1,1
87 test_mem_limmed 0xdead,0xbeef,gr20
91 set_fr_iimmed 0xffff,0xaaaa,fr8
92 csthfu fr8,@(sp,gr7),cc1,1
93 test_mem_limmed 0xdead,0xbeef,gr20
99 set_fr_iimmed 0x2222,0xbbbb,fr8
100 csthfu fr8,@(sp,gr7),cc5,1
101 test_mem_limmed 0xdead,0xbeef,gr20
105 set_mem_limmed 0xdead,0xbeef,sp
108 set_fr_iimmed 0x1111,0xffff,fr8
109 csthfu fr8,@(sp,gr7),cc2,0
110 test_mem_limmed 0xdead,0xbeef,gr20
114 set_fr_iimmed 0xffff,0xaaaa,fr8
115 csthfu fr8,@(sp,gr7),cc2,1
116 test_mem_limmed 0xdead,0xbeef,gr20
122 set_fr_iimmed 0x2222,0xbbbb,fr8
123 csthfu fr8,@(sp,gr7),cc6,0
124 test_mem_limmed 0xdead,0xbeef,gr20
128 set_mem_limmed 0xdead,0xbeef,sp
131 set_fr_iimmed 0x1111,0xffff,fr8
132 csthfu fr8,@(sp,gr7),cc3,1
133 test_mem_limmed 0xdead,0xbeef,gr20
137 set_fr_iimmed 0xffff,0xaaaa,fr8
138 csthfu fr8,@(sp,gr7),cc3,0
139 test_mem_limmed 0xdead,0xbeef,gr20
145 set_fr_iimmed 0x2222,0xbbbb,fr8
146 csthfu fr8,@(sp,gr7),cc7,1
147 test_mem_limmed 0xdead,0xbeef,gr20