1 # frv testcase for csthf $FRk,@($GRi,$GRj),$CCi,$cond
4 .include "testutils.inc"
10 set_spr_immed 0x1b1b,cccr
13 set_mem_limmed 0xdead,0xbeef,sp
15 set_fr_iimmed 0x1111,0xffff,fr8
16 csthf fr8,@(sp,gr7),cc0,1
17 test_mem_limmed 0xffff,0xbeef,gr20
20 set_fr_iimmed 0xffff,0xaaaa,fr8
21 csthf fr8,@(sp,gr7),cc0,1
22 test_mem_limmed 0xffff,0xaaaa,gr20
26 set_fr_iimmed 0x2222,0xbbbb,fr8
27 csthf fr8,@(sp,gr7),cc4,1
28 test_mem_limmed 0xffff,0xbbbb,gr20
31 set_mem_limmed 0xdead,0xbeef,sp
33 set_fr_iimmed 0x1111,0xffff,fr8
34 csthf fr8,@(sp,gr7),cc0,0
35 test_mem_limmed 0xdead,0xbeef,gr20
38 set_fr_iimmed 0xffff,0xaaaa,fr8
39 csthf fr8,@(sp,gr7),cc0,0
40 test_mem_limmed 0xdead,0xbeef,gr20
44 set_fr_iimmed 0x2222,0xbbbb,fr8
45 csthf fr8,@(sp,gr7),cc4,0
46 test_mem_limmed 0xdead,0xbeef,gr20
49 set_mem_limmed 0xdead,0xbeef,sp
51 set_fr_iimmed 0x1111,0xffff,fr8
52 csthf fr8,@(sp,gr7),cc1,0
53 test_mem_limmed 0xffff,0xbeef,gr20
56 set_fr_iimmed 0xffff,0xaaaa,fr8
57 csthf fr8,@(sp,gr7),cc1,0
58 test_mem_limmed 0xffff,0xaaaa,gr20
62 set_fr_iimmed 0x2222,0xbbbb,fr8
63 csthf fr8,@(sp,gr7),cc5,0
64 test_mem_limmed 0xffff,0xbbbb,gr20
67 set_mem_limmed 0xdead,0xbeef,sp
69 set_fr_iimmed 0x1111,0xffff,fr8
70 csthf fr8,@(sp,gr7),cc1,1
71 test_mem_limmed 0xdead,0xbeef,gr20
74 set_fr_iimmed 0xffff,0xaaaa,fr8
75 csthf fr8,@(sp,gr7),cc1,1
76 test_mem_limmed 0xdead,0xbeef,gr20
80 set_fr_iimmed 0x2222,0xbbbb,fr8
81 csthf fr8,@(sp,gr7),cc5,1
82 test_mem_limmed 0xdead,0xbeef,gr20
85 set_mem_limmed 0xdead,0xbeef,sp
87 set_fr_iimmed 0x1111,0xffff,fr8
88 csthf fr8,@(sp,gr7),cc2,0
89 test_mem_limmed 0xdead,0xbeef,gr20
92 set_fr_iimmed 0xffff,0xaaaa,fr8
93 csthf fr8,@(sp,gr7),cc2,1
94 test_mem_limmed 0xdead,0xbeef,gr20
98 set_fr_iimmed 0x2222,0xbbbb,fr8
99 csthf fr8,@(sp,gr7),cc6,0
100 test_mem_limmed 0xdead,0xbeef,gr20
103 set_mem_limmed 0xdead,0xbeef,sp
105 set_fr_iimmed 0x1111,0xffff,fr8
106 csthf fr8,@(sp,gr7),cc3,1
107 test_mem_limmed 0xdead,0xbeef,gr20
110 set_fr_iimmed 0xffff,0xaaaa,fr8
111 csthf fr8,@(sp,gr7),cc3,0
112 test_mem_limmed 0xdead,0xbeef,gr20
116 set_fr_iimmed 0x2222,0xbbbb,fr8
117 csthf fr8,@(sp,gr7),cc7,1
118 test_mem_limmed 0xdead,0xbeef,gr20