di_reg.s 10.5 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472
/****************************************************************
  RSP DUAL ISSUE: 
 ****************************************************************/

.base 0x10002000

	lui	$1, 0x1000
	ori	$1, 0x0000
	ctc2	$0, $v0
	ctc2	$0, $v1
	.data	0x10000000
	.word	0x01010101		/* Addr: 0x10000000 */
	.word	0x01010101		/* Addr: 0x10000004 */
	.word	0x01010101		/* Addr: 0x10000008 */
	.word	0x01010101		/* Addr: 0x1000000C */
	lqv	$v0, 0x0($1)
	.word	0x02020202		/* Addr: 0x10000010 */
	.word	0x02020202		/* Addr: 0x10000014 */
	.word	0x02020202		/* Addr: 0x10000018 */
	.word	0x02020202		/* Addr: 0x1000001C */
	lqv	$v1, 0x10($1)
	vnxor	$v2, $v2, $v2
	vnxor	$v3, $v3, $v3
	vnxor	$v4, $v4, $v4
	vnxor	$v5, $v5, $v5
	vnxor	$v6, $v6, $v6
	vnxor	$v7, $v7, $v7
	vnxor	$v8, $v8, $v8
	vnxor	$v9, $v9, $v9
	vnxor	$v10, $v10, $v10
	vnxor	$v11, $v11, $v11
	vnxor	$v12, $v12, $v12
	vnxor	$v13, $v13, $v13
	vnxor	$v14, $v14, $v14
	vnxor	$v15, $v15, $v15
	vnxor	$v16, $v16, $v16
	vnxor	$v17, $v17, $v17
	vnxor	$v18, $v18, $v18
	vnxor	$v19, $v19, $v19
	vnxor	$v20, $v20, $v20
	vnxor	$v21, $v21, $v21
	vnxor	$v22, $v22, $v22
	vnxor	$v23, $v23, $v23
	vnxor	$v24, $v24, $v24
	vnxor	$v25, $v25, $v25
	vnxor	$v26, $v26, $v26
	vnxor	$v27, $v27, $v27
	vnxor	$v28, $v28, $v28
	vnxor	$v29, $v29, $v29
	vnxor	$v30, $v30, $v30
	vnxor	$v31, $v31, $v31

	/************************************************
	  TEST BODY
	 ************************************************/

	vadd	$v2, $v0, $v1
	vadd	$v3, $v0, $v2
	vadd	$v4, $v0, $v3
	vadd	$v5, $v0, $v4
	vadd	$v6, $v0, $v5
	vadd	$v7, $v0, $v6
	vadd	$v8, $v0, $v7
	vadd	$v9, $v0, $v8
	vadd	$v10, $v0, $v9
	vadd	$v11, $v0, $v10
	vadd	$v12, $v0, $v11
	vadd	$v13, $v0, $v12
	vadd	$v14, $v0, $v13
	vadd	$v15, $v0, $v14
	vadd	$v16, $v0, $v15
	vadd	$v17, $v0, $v16
	vadd	$v18, $v0, $v17
	vadd	$v19, $v0, $v18
	vadd	$v20, $v0, $v19
	vadd	$v21, $v0, $v20
	vadd	$v22, $v0, $v21
	vadd	$v23, $v0, $v22
	vadd	$v24, $v0, $v23
	vadd	$v25, $v0, $v24
	vadd	$v26, $v0, $v25
	vadd	$v27, $v0, $v26
	vadd	$v28, $v0, $v27
	vadd	$v29, $v0, $v28
	vadd	$v30, $v0, $v29
	vadd	$v31, $v0, $v30
	vadd	$v0, $v0, $v31
	vadd	$v1, $v0, $v0

	/************************************************
	  CHECK RESULT
	 ************************************************/

	lui	$1, 0x1000
	ori	$1, 0x0020
	lui	$2, 0x0000
	ori	$2, 0x00FF
	xor	$3, $3, $3
	.word	0x42424242		/* Addr: 0x10000020 */
	.word	0x42424242		/* Addr: 0x10000024 */
	.word	0x42424242		/* Addr: 0x10000028 */
	.word	0x42424242		/* Addr: 0x1000002C */
	lqv	$v0, 0x0($1)
	veq	$v0, $v0, $v1
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x03030303		/* Addr: 0x10000030 */
	.word	0x03030303		/* Addr: 0x10000034 */
	.word	0x03030303		/* Addr: 0x10000038 */
	.word	0x03030303		/* Addr: 0x1000003C */
	lqv	$v0, 0x10($1)
	veq	$v0, $v0, $v2
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x04040404		/* Addr: 0x10000040 */
	.word	0x04040404		/* Addr: 0x10000044 */
	.word	0x04040404		/* Addr: 0x10000048 */
	.word	0x04040404		/* Addr: 0x1000004C */
	lqv	$v0, 0x20($1)
	veq	$v0, $v0, $v3
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x05050505		/* Addr: 0x10000050 */
	.word	0x05050505		/* Addr: 0x10000054 */
	.word	0x05050505		/* Addr: 0x10000058 */
	.word	0x05050505		/* Addr: 0x1000005C */
	lqv	$v0, 0x30($1)
	veq	$v0, $v0, $v4
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x06060606		/* Addr: 0x10000060 */
	.word	0x06060606		/* Addr: 0x10000064 */
	.word	0x06060606		/* Addr: 0x10000068 */
	.word	0x06060606		/* Addr: 0x1000006C */
	lqv	$v0, 0x40($1)
	veq	$v0, $v0, $v5
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x07070707		/* Addr: 0x10000070 */
	.word	0x07070707		/* Addr: 0x10000074 */
	.word	0x07070707		/* Addr: 0x10000078 */
	.word	0x07070707		/* Addr: 0x1000007C */
	lqv	$v0, 0x50($1)
	veq	$v0, $v0, $v6
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x08080808		/* Addr: 0x10000080 */
	.word	0x08080808		/* Addr: 0x10000084 */
	.word	0x08080808		/* Addr: 0x10000088 */
	.word	0x08080808		/* Addr: 0x1000008C */
	lqv	$v0, 0x60($1)
	veq	$v0, $v0, $v7
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x09090909		/* Addr: 0x10000090 */
	.word	0x09090909		/* Addr: 0x10000094 */
	.word	0x09090909		/* Addr: 0x10000098 */
	.word	0x09090909		/* Addr: 0x1000009C */
	lqv	$v0, 0x70($1)
	veq	$v0, $v0, $v8
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x0A0A0A0A		/* Addr: 0x100000A0 */
	.word	0x0A0A0A0A		/* Addr: 0x100000A4 */
	.word	0x0A0A0A0A		/* Addr: 0x100000A8 */
	.word	0x0A0A0A0A		/* Addr: 0x100000AC */
	lqv	$v0, 0x80($1)
	veq	$v0, $v0, $v9
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x0B0B0B0B		/* Addr: 0x100000B0 */
	.word	0x0B0B0B0B		/* Addr: 0x100000B4 */
	.word	0x0B0B0B0B		/* Addr: 0x100000B8 */
	.word	0x0B0B0B0B		/* Addr: 0x100000BC */
	lqv	$v0, 0x90($1)
	veq	$v0, $v0, $v10
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x0C0C0C0C		/* Addr: 0x100000C0 */
	.word	0x0C0C0C0C		/* Addr: 0x100000C4 */
	.word	0x0C0C0C0C		/* Addr: 0x100000C8 */
	.word	0x0C0C0C0C		/* Addr: 0x100000CC */
	lqv	$v0, 0xA0($1)
	veq	$v0, $v0, $v11
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x0D0D0D0D		/* Addr: 0x100000D0 */
	.word	0x0D0D0D0D		/* Addr: 0x100000D4 */
	.word	0x0D0D0D0D		/* Addr: 0x100000D8 */
	.word	0x0D0D0D0D		/* Addr: 0x100000DC */
	lqv	$v0, 0xB0($1)
	veq	$v0, $v0, $v12
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x0E0E0E0E		/* Addr: 0x100000E0 */
	.word	0x0E0E0E0E		/* Addr: 0x100000E4 */
	.word	0x0E0E0E0E		/* Addr: 0x100000E8 */
	.word	0x0E0E0E0E		/* Addr: 0x100000EC */
	lqv	$v0, 0xC0($1)
	veq	$v0, $v0, $v13
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x0F0F0F0F		/* Addr: 0x100000F0 */
	.word	0x0F0F0F0F		/* Addr: 0x100000F4 */
	.word	0x0F0F0F0F		/* Addr: 0x100000F8 */
	.word	0x0F0F0F0F		/* Addr: 0x100000FC */
	lqv	$v0, 0xD0($1)
	veq	$v0, $v0, $v14
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x10101010		/* Addr: 0x10000100 */
	.word	0x10101010		/* Addr: 0x10000104 */
	.word	0x10101010		/* Addr: 0x10000108 */
	.word	0x10101010		/* Addr: 0x1000010C */
	lqv	$v0, 0xE0($1)
	veq	$v0, $v0, $v15
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x11111111		/* Addr: 0x10000110 */
	.word	0x11111111		/* Addr: 0x10000114 */
	.word	0x11111111		/* Addr: 0x10000118 */
	.word	0x11111111		/* Addr: 0x1000011C */
	lqv	$v0, 0xF0($1)
	veq	$v0, $v0, $v16
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x12121212		/* Addr: 0x10000120 */
	.word	0x12121212		/* Addr: 0x10000124 */
	.word	0x12121212		/* Addr: 0x10000128 */
	.word	0x12121212		/* Addr: 0x1000012C */
	lqv	$v0, 0x100($1)
	veq	$v0, $v0, $v17
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x13131313		/* Addr: 0x10000130 */
	.word	0x13131313		/* Addr: 0x10000134 */
	.word	0x13131313		/* Addr: 0x10000138 */
	.word	0x13131313		/* Addr: 0x1000013C */
	lqv	$v0, 0x110($1)
	veq	$v0, $v0, $v18
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x14141414		/* Addr: 0x10000140 */
	.word	0x14141414		/* Addr: 0x10000144 */
	.word	0x14141414		/* Addr: 0x10000148 */
	.word	0x14141414		/* Addr: 0x1000014C */
	lqv	$v0, 0x120($1)
	veq	$v0, $v0, $v19
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x15151515		/* Addr: 0x10000150 */
	.word	0x15151515		/* Addr: 0x10000154 */
	.word	0x15151515		/* Addr: 0x10000158 */
	.word	0x15151515		/* Addr: 0x1000015C */
	lqv	$v0, 0x130($1)
	veq	$v0, $v0, $v20
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x16161616		/* Addr: 0x10000160 */
	.word	0x16161616		/* Addr: 0x10000164 */
	.word	0x16161616		/* Addr: 0x10000168 */
	.word	0x16161616		/* Addr: 0x1000016C */
	lqv	$v0, 0x140($1)
	veq	$v0, $v0, $v21
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x17171717		/* Addr: 0x10000170 */
	.word	0x17171717		/* Addr: 0x10000174 */
	.word	0x17171717		/* Addr: 0x10000178 */
	.word	0x17171717		/* Addr: 0x1000017C */
	lqv	$v0, 0x150($1)
	veq	$v0, $v0, $v22
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x18181818		/* Addr: 0x10000180 */
	.word	0x18181818		/* Addr: 0x10000184 */
	.word	0x18181818		/* Addr: 0x10000188 */
	.word	0x18181818		/* Addr: 0x1000018C */
	lqv	$v0, 0x160($1)
	veq	$v0, $v0, $v23
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x19191919		/* Addr: 0x10000190 */
	.word	0x19191919		/* Addr: 0x10000194 */
	.word	0x19191919		/* Addr: 0x10000198 */
	.word	0x19191919		/* Addr: 0x1000019C */
	lqv	$v0, 0x170($1)
	veq	$v0, $v0, $v24
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x1A1A1A1A		/* Addr: 0x100001A0 */
	.word	0x1A1A1A1A		/* Addr: 0x100001A4 */
	.word	0x1A1A1A1A		/* Addr: 0x100001A8 */
	.word	0x1A1A1A1A		/* Addr: 0x100001AC */
	lqv	$v0, 0x180($1)
	veq	$v0, $v0, $v25
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x1B1B1B1B		/* Addr: 0x100001B0 */
	.word	0x1B1B1B1B		/* Addr: 0x100001B4 */
	.word	0x1B1B1B1B		/* Addr: 0x100001B8 */
	.word	0x1B1B1B1B		/* Addr: 0x100001BC */
	lqv	$v0, 0x190($1)
	veq	$v0, $v0, $v26
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x1C1C1C1C		/* Addr: 0x100001C0 */
	.word	0x1C1C1C1C		/* Addr: 0x100001C4 */
	.word	0x1C1C1C1C		/* Addr: 0x100001C8 */
	.word	0x1C1C1C1C		/* Addr: 0x100001CC */
	lqv	$v0, 0x1A0($1)
	veq	$v0, $v0, $v27
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x1D1D1D1D		/* Addr: 0x100001D0 */
	.word	0x1D1D1D1D		/* Addr: 0x100001D4 */
	.word	0x1D1D1D1D		/* Addr: 0x100001D8 */
	.word	0x1D1D1D1D		/* Addr: 0x100001DC */
	lqv	$v0, 0x1B0($1)
	veq	$v0, $v0, $v28
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x1E1E1E1E		/* Addr: 0x100001E0 */
	.word	0x1E1E1E1E		/* Addr: 0x100001E4 */
	.word	0x1E1E1E1E		/* Addr: 0x100001E8 */
	.word	0x1E1E1E1E		/* Addr: 0x100001EC */
	lqv	$v0, 0x1C0($1)
	veq	$v0, $v0, $v29
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x1F1F1F1F		/* Addr: 0x100001F0 */
	.word	0x1F1F1F1F		/* Addr: 0x100001F4 */
	.word	0x1F1F1F1F		/* Addr: 0x100001F8 */
	.word	0x1F1F1F1F		/* Addr: 0x100001FC */
	lqv	$v0, 0x1D0($1)
	veq	$v0, $v0, $v30
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	xor	$3, $3, $3
	.word	0x20202020		/* Addr: 0x10000200 */
	.word	0x20202020		/* Addr: 0x10000204 */
	.word	0x20202020		/* Addr: 0x10000208 */
	.word	0x20202020		/* Addr: 0x1000020C */
	lqv	$v0, 0x1E0($1)
	veq	$v0, $v0, $v31
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	lui	$1, 0xFEED
	ori	$1, 0x0000
Fail:	break;