Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: src/mips64/constants-mips64.h

Issue 1143473003: Revert of MIPS: Add float instructions and test coverage, part one (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips64/assembler-mips64.cc ('k') | src/mips64/disasm-mips64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_MIPS_CONSTANTS_H_ 5 #ifndef V8_MIPS_CONSTANTS_H_
6 #define V8_MIPS_CONSTANTS_H_ 6 #define V8_MIPS_CONSTANTS_H_
7 7
8 // UNIMPLEMENTED_ macro for MIPS. 8 // UNIMPLEMENTED_ macro for MIPS.
9 #ifdef DEBUG 9 #ifdef DEBUG
10 #define UNIMPLEMENTED_MIPS() \ 10 #define UNIMPLEMENTED_MIPS() \
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 DMTC1 = ((0 << 3) + 5) << 21, 463 DMTC1 = ((0 << 3) + 5) << 21,
464 CTC1 = ((0 << 3) + 6) << 21, 464 CTC1 = ((0 << 3) + 6) << 21,
465 MTHC1 = ((0 << 3) + 7) << 21, 465 MTHC1 = ((0 << 3) + 7) << 21,
466 BC1 = ((1 << 3) + 0) << 21, 466 BC1 = ((1 << 3) + 0) << 21,
467 S = ((2 << 3) + 0) << 21, 467 S = ((2 << 3) + 0) << 21,
468 D = ((2 << 3) + 1) << 21, 468 D = ((2 << 3) + 1) << 21,
469 W = ((2 << 3) + 4) << 21, 469 W = ((2 << 3) + 4) << 21,
470 L = ((2 << 3) + 5) << 21, 470 L = ((2 << 3) + 5) << 21,
471 PS = ((2 << 3) + 6) << 21, 471 PS = ((2 << 3) + 6) << 21,
472 // COP1 Encoding of Function Field When rs=S. 472 // COP1 Encoding of Function Field When rs=S.
473 ADD_S = ((0 << 3) + 0),
474 SUB_S = ((0 << 3) + 1),
475 MUL_S = ((0 << 3) + 2),
476 DIV_S = ((0 << 3) + 3),
477 ABS_S = ((0 << 3) + 5),
478 SQRT_S = ((0 << 3) + 4),
479 MOV_S = ((0 << 3) + 6),
480 NEG_S = ((0 << 3) + 7),
481 ROUND_L_S = ((1 << 3) + 0), 473 ROUND_L_S = ((1 << 3) + 0),
482 TRUNC_L_S = ((1 << 3) + 1), 474 TRUNC_L_S = ((1 << 3) + 1),
483 CEIL_L_S = ((1 << 3) + 2), 475 CEIL_L_S = ((1 << 3) + 2),
484 FLOOR_L_S = ((1 << 3) + 3), 476 FLOOR_L_S = ((1 << 3) + 3),
485 ROUND_W_S = ((1 << 3) + 4), 477 ROUND_W_S = ((1 << 3) + 4),
486 TRUNC_W_S = ((1 << 3) + 5), 478 TRUNC_W_S = ((1 << 3) + 5),
487 CEIL_W_S = ((1 << 3) + 6), 479 CEIL_W_S = ((1 << 3) + 6),
488 FLOOR_W_S = ((1 << 3) + 7), 480 FLOOR_W_S = ((1 << 3) + 7),
489 RECIP_S = ((2 << 3) + 5),
490 RSQRT_S = ((2 << 3) + 6),
491 CVT_D_S = ((4 << 3) + 1), 481 CVT_D_S = ((4 << 3) + 1),
492 CVT_W_S = ((4 << 3) + 4), 482 CVT_W_S = ((4 << 3) + 4),
493 CVT_L_S = ((4 << 3) + 5), 483 CVT_L_S = ((4 << 3) + 5),
494 CVT_PS_S = ((4 << 3) + 6), 484 CVT_PS_S = ((4 << 3) + 6),
495 // COP1 Encoding of Function Field When rs=D. 485 // COP1 Encoding of Function Field When rs=D.
496 ADD_D = ((0 << 3) + 0), 486 ADD_D = ((0 << 3) + 0),
497 SUB_D = ((0 << 3) + 1), 487 SUB_D = ((0 << 3) + 1),
498 MUL_D = ((0 << 3) + 2), 488 MUL_D = ((0 << 3) + 2),
499 DIV_D = ((0 << 3) + 3), 489 DIV_D = ((0 << 3) + 3),
500 SQRT_D = ((0 << 3) + 4), 490 SQRT_D = ((0 << 3) + 4),
501 ABS_D = ((0 << 3) + 5), 491 ABS_D = ((0 << 3) + 5),
502 MOV_D = ((0 << 3) + 6), 492 MOV_D = ((0 << 3) + 6),
503 NEG_D = ((0 << 3) + 7), 493 NEG_D = ((0 << 3) + 7),
504 ROUND_L_D = ((1 << 3) + 0), 494 ROUND_L_D = ((1 << 3) + 0),
505 TRUNC_L_D = ((1 << 3) + 1), 495 TRUNC_L_D = ((1 << 3) + 1),
506 CEIL_L_D = ((1 << 3) + 2), 496 CEIL_L_D = ((1 << 3) + 2),
507 FLOOR_L_D = ((1 << 3) + 3), 497 FLOOR_L_D = ((1 << 3) + 3),
508 ROUND_W_D = ((1 << 3) + 4), 498 ROUND_W_D = ((1 << 3) + 4),
509 TRUNC_W_D = ((1 << 3) + 5), 499 TRUNC_W_D = ((1 << 3) + 5),
510 CEIL_W_D = ((1 << 3) + 6), 500 CEIL_W_D = ((1 << 3) + 6),
511 FLOOR_W_D = ((1 << 3) + 7), 501 FLOOR_W_D = ((1 << 3) + 7),
512 RECIP_D = ((2 << 3) + 5), 502 MIN = ((3 << 3) + 4),
513 RSQRT_D = ((2 << 3) + 6), 503 MINA = ((3 << 3) + 5),
504 MAX = ((3 << 3) + 6),
505 MAXA = ((3 << 3) + 7),
514 CVT_S_D = ((4 << 3) + 0), 506 CVT_S_D = ((4 << 3) + 0),
515 CVT_W_D = ((4 << 3) + 4), 507 CVT_W_D = ((4 << 3) + 4),
516 CVT_L_D = ((4 << 3) + 5), 508 CVT_L_D = ((4 << 3) + 5),
517 C_F_D = ((6 << 3) + 0), 509 C_F_D = ((6 << 3) + 0),
518 C_UN_D = ((6 << 3) + 1), 510 C_UN_D = ((6 << 3) + 1),
519 C_EQ_D = ((6 << 3) + 2), 511 C_EQ_D = ((6 << 3) + 2),
520 C_UEQ_D = ((6 << 3) + 3), 512 C_UEQ_D = ((6 << 3) + 3),
521 C_OLT_D = ((6 << 3) + 4), 513 C_OLT_D = ((6 << 3) + 4),
522 C_ULT_D = ((6 << 3) + 5), 514 C_ULT_D = ((6 << 3) + 5),
523 C_OLE_D = ((6 << 3) + 6), 515 C_OLE_D = ((6 << 3) + 6),
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 CMP_OGT = ((2 << 3) + 7), // Reserved, not implemented. 549 CMP_OGT = ((2 << 3) + 7), // Reserved, not implemented.
558 CMP_SAT = ((3 << 3) + 0), // Reserved, not implemented. 550 CMP_SAT = ((3 << 3) + 0), // Reserved, not implemented.
559 CMP_SOR = ((3 << 3) + 1), 551 CMP_SOR = ((3 << 3) + 1),
560 CMP_SUNE = ((3 << 3) + 2), 552 CMP_SUNE = ((3 << 3) + 2),
561 CMP_SNE = ((3 << 3) + 3), 553 CMP_SNE = ((3 << 3) + 3),
562 CMP_SUGE = ((3 << 3) + 4), // Reserved, not implemented. 554 CMP_SUGE = ((3 << 3) + 4), // Reserved, not implemented.
563 CMP_SOGE = ((3 << 3) + 5), // Reserved, not implemented. 555 CMP_SOGE = ((3 << 3) + 5), // Reserved, not implemented.
564 CMP_SUGT = ((3 << 3) + 6), // Reserved, not implemented. 556 CMP_SUGT = ((3 << 3) + 6), // Reserved, not implemented.
565 CMP_SOGT = ((3 << 3) + 7), // Reserved, not implemented. 557 CMP_SOGT = ((3 << 3) + 7), // Reserved, not implemented.
566 558
567 MIN = ((3 << 3) + 4),
568 MINA = ((3 << 3) + 5),
569 MAX = ((3 << 3) + 6),
570 MAXA = ((3 << 3) + 7),
571 SEL = ((2 << 3) + 0), 559 SEL = ((2 << 3) + 0),
572 MOVF = ((2 << 3) + 1), // Function field for MOVT.fmt and MOVF.fmt
573 MOVZ_C = ((2 << 3) + 2), // COP1 on FPR registers.
574 MOVN_C = ((2 << 3) + 3), // COP1 on FPR registers.
575 SELEQZ_C = ((2 << 3) + 4), // COP1 on FPR registers. 560 SELEQZ_C = ((2 << 3) + 4), // COP1 on FPR registers.
576 SELNEZ_C = ((2 << 3) + 7), // COP1 on FPR registers. 561 SELNEZ_C = ((2 << 3) + 7), // COP1 on FPR registers.
577 562
578 // COP1 Encoding of Function Field When rs=PS. 563 // COP1 Encoding of Function Field When rs=PS.
579 // COP1X Encoding of Function Field. 564 // COP1X Encoding of Function Field.
580 MADD_D = ((4 << 3) + 1), 565 MADD_D = ((4 << 3) + 1),
581 566
582 NULLSF = 0 567 NULLSF = 0
583 }; 568 };
584 569
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 // TODO(plind): below should be based on kPointerSize 979 // TODO(plind): below should be based on kPointerSize
995 // TODO(plind): find all usages and remove the needless instructions for n64. 980 // TODO(plind): find all usages and remove the needless instructions for n64.
996 const int kCArgsSlotsSize = kCArgSlotCount * Instruction::kInstrSize * 2; 981 const int kCArgsSlotsSize = kCArgSlotCount * Instruction::kInstrSize * 2;
997 982
998 const int kInvalidStackOffset = -1; 983 const int kInvalidStackOffset = -1;
999 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; 984 const int kBranchReturnOffset = 2 * Instruction::kInstrSize;
1000 985
1001 } } // namespace v8::internal 986 } } // namespace v8::internal
1002 987
1003 #endif // #ifndef V8_MIPS_CONSTANTS_H_ 988 #endif // #ifndef V8_MIPS_CONSTANTS_H_
OLDNEW
« no previous file with comments | « src/mips64/assembler-mips64.cc ('k') | src/mips64/disasm-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698