1 //Original
:/proj
/frio
/dv
/testcases
/core
/c_ccflag_pr_pr_uu
/c_ccflag_pr_pr_uu.dsp
2 // Spec Reference
: ccflag pr-pr
(uu
)
5 .include "testutils.inc"
10 //imm32 p0
, 0x00110022;
23 // positive preg-
1 EQUAL to positive preg-
2
28 CHECKREG
r4, 0x00000000;
29 CHECKREG
r5, 0x00000000;
30 CHECKREG
r6, 0x00000000;
31 CHECKREG
r7, 0x00000000;
33 // positive preg-
1 GREATER than positive preg-
2
38 CHECKREG
r6, 0x00000000;
39 CHECKREG
r7, 0x00000000;
40 // positive preg-
1 LESS than positive preg-
2
45 CHECKREG
r6, 0x00000020;
46 CHECKREG
r7, 0x00000020;
48 //imm32 p0
, 0x01230123;
52 // operate on negative number
57 // positive preg-
1 GREATER than negative preg-
2
62 CHECKREG
r4, 0x00000000;
63 CHECKREG
r6, 0x00000020;
64 CHECKREG
r7, 0x00000020;
66 // negative preg-
1 LESS than POSITIVE preg-
2 small
71 CHECKREG
r6, 0x00000000;
72 CHECKREG
r7, 0x00000000;
74 // negative preg-
1 GREATER than negative preg-
2
79 CHECKREG
r6, 0x00000020;
80 CHECKREG
r7, 0x00000020;
82 // negative preg-
1 LESS than negative preg-
2
87 CHECKREG
r6, 0x00000000;
88 CHECKREG
r7, 0x00000000;
91 //imm32 p0
, 0x80230123;
95 // operate on negative number
100 // negative preg-
1 LESS than POSITIVE preg-
2
105 CHECKREG
r4, 0x00000000;
// overflow
and carry but
not negative
106 CHECKREG
r6, 0x00000000;
// cc overflow
, carry
and negative
107 CHECKREG
r7, 0x00000000;
110 imm32 p4
, 0x44444444;
111 imm32 p5
, 0x55555555;
112 imm32 fp
, 0x66666666;
113 imm32 sp
, 0x77777777;
115 //imm32 p0
, 0x00000000;
116 imm32 p1
, 0x11111111;
117 imm32 p2
, 0x00000000;
118 imm32 p3
, 0x33333333;
122 CHECKREG
r3, 0x00000000;
124 // positive preg-
1 EQUAL to positive preg-
2
129 CHECKREG
r1, 0x00000020;
130 CHECKREG
r2, 0x00000020;
132 // positive preg-
1 GREATER than positive preg-
2
137 CHECKREG
r1, 0x00000000;
138 CHECKREG
r2, 0x00000000;
141 // positive preg-
1 LESS than positive preg-
2
146 CHECKREG
r1, 0x00000020;
147 CHECKREG
r2, 0x00000020;
149 imm32 p4
, 0x01230123;
150 imm32 p5
, 0x81230123;
151 imm32 fp
, 0x04560456;
152 imm32 sp
, 0x87890789;
153 // operate on negative number
157 CHECKREG
r3, 0x00000000;
159 // positive preg-
1 GREATER than negative preg-
2
164 CHECKREG
r2, 0x00000020;
165 CHECKREG
r3, 0x00000020;
167 // negative preg-
1 LESS than POSITIVE preg-
2 small
172 CHECKREG
r1, 0x00000000;
173 CHECKREG
r2, 0x00000000;
175 // negative preg-
1 GREATER than negative preg-
2
180 CHECKREG
r1, 0x00000020;
181 CHECKREG
r2, 0x00000020;
183 // negative preg-
1 LESS than negative preg-
2
188 CHECKREG
r1, 0x00000020;
189 CHECKREG
r2, 0x00000000;
190 CHECKREG
r3, 0x00000000;
193 imm32 p4
, 0x80230123;
194 imm32 p5
, 0x00230123;
195 imm32 fp
, 0x80560056;
196 imm32 sp
, 0x00890089;
197 // operate on negative number
202 // negative preg-
1 LESS than POSITIVE preg-
2
207 CHECKREG
r0, 0x00000000;
// overflow
and carry but
not negative
208 CHECKREG
r2, 0x00001005;
// cc overflow
, carry
and negative
209 CHECKREG
r3, 0x00001025;