di_reghz3.s 10.9 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 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567
/****************************************************************
  RSP DUAL ISSUE: Register Hazard
 ****************************************************************/

.base 0x04001000

	lui	$1, 0x0400
	ori	$1, $1, 0x0000
	ctc2	$0, $v0
	ctc2	$0, $v1
	.data	0x04000000
	.word	0x01010101		/* Addr: 0x04000000 */
	.word	0x01010101		/* Addr: 0x04000004 */
	.word	0x01010101		/* Addr: 0x04000008 */
	.word	0x01010101		/* Addr: 0x0400000C */
	lqv	$v0, 0x0($1)
	.word	0x02020202		/* Addr: 0x04000010 */
	.word	0x02020202		/* Addr: 0x04000014 */
	.word	0x02020202		/* Addr: 0x04000018 */
	.word	0x02020202		/* Addr: 0x0400001C */
	lqv	$v1, 0x10($1)
	vnxor	$v2, $v0, $v0
	vnxor	$v3, $v0, $v0
	vnxor	$v4, $v0, $v0
	vnxor	$v5, $v0, $v0
	vnxor	$v6, $v0, $v0
	vnxor	$v7, $v0, $v0
	vnxor	$v8, $v0, $v0
	vnxor	$v9, $v0, $v0
	vnxor	$v10, $v0, $v0
	vnxor	$v11, $v0, $v0
	vnxor	$v12, $v0, $v0
	vnxor	$v13, $v0, $v0
	vnxor	$v14, $v0, $v0
	vnxor	$v15, $v0, $v0
	vnxor	$v16, $v0, $v0
	vnxor	$v17, $v0, $v0
	vnxor	$v18, $v0, $v0
	vnxor	$v19, $v0, $v0
	vnxor	$v20, $v0, $v0
	vnxor	$v21, $v0, $v0
	vnxor	$v22, $v0, $v0
	vnxor	$v23, $v0, $v0
	vnxor	$v24, $v0, $v0
	vnxor	$v25, $v0, $v0
	vnxor	$v26, $v0, $v0
	vnxor	$v27, $v0, $v0
	vnxor	$v28, $v0, $v0
	vnxor	$v29, $v0, $v0
	vnxor	$v30, $v0, $v0
	vnxor	$v31, $v0, $v0

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

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

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

	lui	$1, 0x0400
	ori	$1, $1, 0x0020
	lui	$2, 0x0000
	ori	$2, $2, 0x00FF
	xor	$3, $3, $3
	.word	0x42424242		/* Addr: 0x04000020 */
	.word	0x42424242		/* Addr: 0x04000024 */
	.word	0x42424242		/* Addr: 0x04000028 */
	.word	0x42424242		/* Addr: 0x0400002C */
	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: 0x04000030 */
	.word	0x03030303		/* Addr: 0x04000034 */
	.word	0x03030303		/* Addr: 0x04000038 */
	.word	0x03030303		/* Addr: 0x0400003C */
	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: 0x04000040 */
	.word	0x04040404		/* Addr: 0x04000044 */
	.word	0x04040404		/* Addr: 0x04000048 */
	.word	0x04040404		/* Addr: 0x0400004C */
	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: 0x04000050 */
	.word	0x05050505		/* Addr: 0x04000054 */
	.word	0x05050505		/* Addr: 0x04000058 */
	.word	0x05050505		/* Addr: 0x0400005C */
	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: 0x04000060 */
	.word	0x06060606		/* Addr: 0x04000064 */
	.word	0x06060606		/* Addr: 0x04000068 */
	.word	0x06060606		/* Addr: 0x0400006C */
	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: 0x04000070 */
	.word	0x07070707		/* Addr: 0x04000074 */
	.word	0x07070707		/* Addr: 0x04000078 */
	.word	0x07070707		/* Addr: 0x0400007C */
	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: 0x04000080 */
	.word	0x08080808		/* Addr: 0x04000084 */
	.word	0x08080808		/* Addr: 0x04000088 */
	.word	0x08080808		/* Addr: 0x0400008C */
	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: 0x04000090 */
	.word	0x09090909		/* Addr: 0x04000094 */
	.word	0x09090909		/* Addr: 0x04000098 */
	.word	0x09090909		/* Addr: 0x0400009C */
	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: 0x040000A0 */
	.word	0x0A0A0A0A		/* Addr: 0x040000A4 */
	.word	0x0A0A0A0A		/* Addr: 0x040000A8 */
	.word	0x0A0A0A0A		/* Addr: 0x040000AC */
	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: 0x040000B0 */
	.word	0x0B0B0B0B		/* Addr: 0x040000B4 */
	.word	0x0B0B0B0B		/* Addr: 0x040000B8 */
	.word	0x0B0B0B0B		/* Addr: 0x040000BC */
	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: 0x040000C0 */
	.word	0x0C0C0C0C		/* Addr: 0x040000C4 */
	.word	0x0C0C0C0C		/* Addr: 0x040000C8 */
	.word	0x0C0C0C0C		/* Addr: 0x040000CC */
	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: 0x040000D0 */
	.word	0x0D0D0D0D		/* Addr: 0x040000D4 */
	.word	0x0D0D0D0D		/* Addr: 0x040000D8 */
	.word	0x0D0D0D0D		/* Addr: 0x040000DC */
	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: 0x040000E0 */
	.word	0x0E0E0E0E		/* Addr: 0x040000E4 */
	.word	0x0E0E0E0E		/* Addr: 0x040000E8 */
	.word	0x0E0E0E0E		/* Addr: 0x040000EC */
	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: 0x040000F0 */
	.word	0x0F0F0F0F		/* Addr: 0x040000F4 */
	.word	0x0F0F0F0F		/* Addr: 0x040000F8 */
	.word	0x0F0F0F0F		/* Addr: 0x040000FC */
	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: 0x04000100 */
	.word	0x10101010		/* Addr: 0x04000104 */
	.word	0x10101010		/* Addr: 0x04000108 */
	.word	0x10101010		/* Addr: 0x0400010C */
	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: 0x04000110 */
	.word	0x11111111		/* Addr: 0x04000114 */
	.word	0x11111111		/* Addr: 0x04000118 */
	.word	0x11111111		/* Addr: 0x0400011C */
	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: 0x04000120 */
	.word	0x12121212		/* Addr: 0x04000124 */
	.word	0x12121212		/* Addr: 0x04000128 */
	.word	0x12121212		/* Addr: 0x0400012C */
	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: 0x04000130 */
	.word	0x13131313		/* Addr: 0x04000134 */
	.word	0x13131313		/* Addr: 0x04000138 */
	.word	0x13131313		/* Addr: 0x0400013C */
	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: 0x04000140 */
	.word	0x14141414		/* Addr: 0x04000144 */
	.word	0x14141414		/* Addr: 0x04000148 */
	.word	0x14141414		/* Addr: 0x0400014C */
	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: 0x04000150 */
	.word	0x15151515		/* Addr: 0x04000154 */
	.word	0x15151515		/* Addr: 0x04000158 */
	.word	0x15151515		/* Addr: 0x0400015C */
	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: 0x04000160 */
	.word	0x16161616		/* Addr: 0x04000164 */
	.word	0x16161616		/* Addr: 0x04000168 */
	.word	0x16161616		/* Addr: 0x0400016C */
	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: 0x04000170 */
	.word	0x17171717		/* Addr: 0x04000174 */
	.word	0x17171717		/* Addr: 0x04000178 */
	.word	0x17171717		/* Addr: 0x0400017C */
	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: 0x04000180 */
	.word	0x18181818		/* Addr: 0x04000184 */
	.word	0x18181818		/* Addr: 0x04000188 */
	.word	0x18181818		/* Addr: 0x0400018C */
	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: 0x04000190 */
	.word	0x19191919		/* Addr: 0x04000194 */
	.word	0x19191919		/* Addr: 0x04000198 */
	.word	0x19191919		/* Addr: 0x0400019C */
	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: 0x040001A0 */
	.word	0x1A1A1A1A		/* Addr: 0x040001A4 */
	.word	0x1A1A1A1A		/* Addr: 0x040001A8 */
	.word	0x1A1A1A1A		/* Addr: 0x040001AC */
	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: 0x040001B0 */
	.word	0x1B1B1B1B		/* Addr: 0x040001B4 */
	.word	0x1B1B1B1B		/* Addr: 0x040001B8 */
	.word	0x1B1B1B1B		/* Addr: 0x040001BC */
	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: 0x040001C0 */
	.word	0x1C1C1C1C		/* Addr: 0x040001C4 */
	.word	0x1C1C1C1C		/* Addr: 0x040001C8 */
	.word	0x1C1C1C1C		/* Addr: 0x040001CC */
	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: 0x040001D0 */
	.word	0x1D1D1D1D		/* Addr: 0x040001D4 */
	.word	0x1D1D1D1D		/* Addr: 0x040001D8 */
	.word	0x1D1D1D1D		/* Addr: 0x040001DC */
	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: 0x040001E0 */
	.word	0x1E1E1E1E		/* Addr: 0x040001E4 */
	.word	0x1E1E1E1E		/* Addr: 0x040001E8 */
	.word	0x1E1E1E1E		/* Addr: 0x040001EC */
	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: 0x040001F0 */
	.word	0x1F1F1F1F		/* Addr: 0x040001F4 */
	.word	0x1F1F1F1F		/* Addr: 0x040001F8 */
	.word	0x1F1F1F1F		/* Addr: 0x040001FC */
	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: 0x04000200 */
	.word	0x20202020		/* Addr: 0x04000204 */
	.word	0x20202020		/* Addr: 0x04000208 */
	.word	0x20202020		/* Addr: 0x0400020C */
	lqv	$v0, 0x1E0($1)
	veq	$v0, $v0, $v31
	nop
	cfc2	$3, $v1
	nop
	bne	$3, $2, Fail
	nop
	ori	$1, $0, 0xFEED
Fail:	break;