OLD | NEW |
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 #include "src/base/logging.h" | 8 #include "src/base/logging.h" |
9 #include "src/base/macros.h" | 9 #include "src/base/macros.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 ROUND_L_S = ((1U << 3) + 0), | 548 ROUND_L_S = ((1U << 3) + 0), |
549 TRUNC_L_S = ((1U << 3) + 1), | 549 TRUNC_L_S = ((1U << 3) + 1), |
550 CEIL_L_S = ((1U << 3) + 2), | 550 CEIL_L_S = ((1U << 3) + 2), |
551 FLOOR_L_S = ((1U << 3) + 3), | 551 FLOOR_L_S = ((1U << 3) + 3), |
552 ROUND_W_S = ((1U << 3) + 4), | 552 ROUND_W_S = ((1U << 3) + 4), |
553 TRUNC_W_S = ((1U << 3) + 5), | 553 TRUNC_W_S = ((1U << 3) + 5), |
554 CEIL_W_S = ((1U << 3) + 6), | 554 CEIL_W_S = ((1U << 3) + 6), |
555 FLOOR_W_S = ((1U << 3) + 7), | 555 FLOOR_W_S = ((1U << 3) + 7), |
556 RECIP_S = ((2U << 3) + 5), | 556 RECIP_S = ((2U << 3) + 5), |
557 RSQRT_S = ((2U << 3) + 6), | 557 RSQRT_S = ((2U << 3) + 6), |
| 558 MADDF_S = ((3U << 3) + 0), |
| 559 MSUBF_S = ((3U << 3) + 1), |
558 CLASS_S = ((3U << 3) + 3), | 560 CLASS_S = ((3U << 3) + 3), |
559 CVT_D_S = ((4U << 3) + 1), | 561 CVT_D_S = ((4U << 3) + 1), |
560 CVT_W_S = ((4U << 3) + 4), | 562 CVT_W_S = ((4U << 3) + 4), |
561 CVT_L_S = ((4U << 3) + 5), | 563 CVT_L_S = ((4U << 3) + 5), |
562 CVT_PS_S = ((4U << 3) + 6), | 564 CVT_PS_S = ((4U << 3) + 6), |
563 // COP1 Encoding of Function Field When rs=D. | 565 // COP1 Encoding of Function Field When rs=D. |
564 ADD_D = ((0U << 3) + 0), | 566 ADD_D = ((0U << 3) + 0), |
565 SUB_D = ((0U << 3) + 1), | 567 SUB_D = ((0U << 3) + 1), |
566 MUL_D = ((0U << 3) + 2), | 568 MUL_D = ((0U << 3) + 2), |
567 DIV_D = ((0U << 3) + 3), | 569 DIV_D = ((0U << 3) + 3), |
568 SQRT_D = ((0U << 3) + 4), | 570 SQRT_D = ((0U << 3) + 4), |
569 ABS_D = ((0U << 3) + 5), | 571 ABS_D = ((0U << 3) + 5), |
570 MOV_D = ((0U << 3) + 6), | 572 MOV_D = ((0U << 3) + 6), |
571 NEG_D = ((0U << 3) + 7), | 573 NEG_D = ((0U << 3) + 7), |
572 ROUND_L_D = ((1U << 3) + 0), | 574 ROUND_L_D = ((1U << 3) + 0), |
573 TRUNC_L_D = ((1U << 3) + 1), | 575 TRUNC_L_D = ((1U << 3) + 1), |
574 CEIL_L_D = ((1U << 3) + 2), | 576 CEIL_L_D = ((1U << 3) + 2), |
575 FLOOR_L_D = ((1U << 3) + 3), | 577 FLOOR_L_D = ((1U << 3) + 3), |
576 ROUND_W_D = ((1U << 3) + 4), | 578 ROUND_W_D = ((1U << 3) + 4), |
577 TRUNC_W_D = ((1U << 3) + 5), | 579 TRUNC_W_D = ((1U << 3) + 5), |
578 CEIL_W_D = ((1U << 3) + 6), | 580 CEIL_W_D = ((1U << 3) + 6), |
579 FLOOR_W_D = ((1U << 3) + 7), | 581 FLOOR_W_D = ((1U << 3) + 7), |
580 RECIP_D = ((2U << 3) + 5), | 582 RECIP_D = ((2U << 3) + 5), |
581 RSQRT_D = ((2U << 3) + 6), | 583 RSQRT_D = ((2U << 3) + 6), |
| 584 MADDF_D = ((3U << 3) + 0), |
| 585 MSUBF_D = ((3U << 3) + 1), |
582 CLASS_D = ((3U << 3) + 3), | 586 CLASS_D = ((3U << 3) + 3), |
583 MIN = ((3U << 3) + 4), | 587 MIN = ((3U << 3) + 4), |
584 MINA = ((3U << 3) + 5), | 588 MINA = ((3U << 3) + 5), |
585 MAX = ((3U << 3) + 6), | 589 MAX = ((3U << 3) + 6), |
586 MAXA = ((3U << 3) + 7), | 590 MAXA = ((3U << 3) + 7), |
587 CVT_S_D = ((4U << 3) + 0), | 591 CVT_S_D = ((4U << 3) + 0), |
588 CVT_W_D = ((4U << 3) + 4), | 592 CVT_W_D = ((4U << 3) + 4), |
589 CVT_L_D = ((4U << 3) + 5), | 593 CVT_L_D = ((4U << 3) + 5), |
590 C_F_D = ((6U << 3) + 0), | 594 C_F_D = ((6U << 3) + 0), |
591 C_UN_D = ((6U << 3) + 1), | 595 C_UN_D = ((6U << 3) + 1), |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 CMP_SOGT = ((3U << 3) + 7), // Reserved, not implemented. | 643 CMP_SOGT = ((3U << 3) + 7), // Reserved, not implemented. |
640 | 644 |
641 SEL = ((2U << 3) + 0), | 645 SEL = ((2U << 3) + 0), |
642 MOVF = ((2U << 3) + 1), // Function field for MOVT.fmt and MOVF.fmt | 646 MOVF = ((2U << 3) + 1), // Function field for MOVT.fmt and MOVF.fmt |
643 MOVZ_C = ((2U << 3) + 2), // COP1 on FPR registers. | 647 MOVZ_C = ((2U << 3) + 2), // COP1 on FPR registers. |
644 MOVN_C = ((2U << 3) + 3), // COP1 on FPR registers. | 648 MOVN_C = ((2U << 3) + 3), // COP1 on FPR registers. |
645 SELEQZ_C = ((2U << 3) + 4), // COP1 on FPR registers. | 649 SELEQZ_C = ((2U << 3) + 4), // COP1 on FPR registers. |
646 SELNEZ_C = ((2U << 3) + 7), // COP1 on FPR registers. | 650 SELNEZ_C = ((2U << 3) + 7), // COP1 on FPR registers. |
647 | 651 |
648 // COP1 Encoding of Function Field When rs=PS. | 652 // COP1 Encoding of Function Field When rs=PS. |
| 653 |
649 // COP1X Encoding of Function Field. | 654 // COP1X Encoding of Function Field. |
| 655 MADD_S = ((4U << 3) + 0), |
650 MADD_D = ((4U << 3) + 1), | 656 MADD_D = ((4U << 3) + 1), |
| 657 MSUB_S = ((5U << 3) + 0), |
| 658 MSUB_D = ((5U << 3) + 1), |
651 | 659 |
652 // PCREL Encoding of rt Field. | 660 // PCREL Encoding of rt Field. |
653 ADDIUPC = ((0U << 2) + 0), | 661 ADDIUPC = ((0U << 2) + 0), |
654 LWPC = ((0U << 2) + 1), | 662 LWPC = ((0U << 2) + 1), |
655 LWUPC = ((0U << 2) + 2), | 663 LWUPC = ((0U << 2) + 2), |
656 LDPC = ((0U << 3) + 6), | 664 LDPC = ((0U << 3) + 6), |
657 // reserved ((1U << 3) + 6), | 665 // reserved ((1U << 3) + 6), |
658 AUIPC = ((3U << 3) + 6), | 666 AUIPC = ((3U << 3) + 6), |
659 ALUIPC = ((3U << 3) + 7), | 667 ALUIPC = ((3U << 3) + 7), |
660 | 668 |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1298 } | 1306 } |
1299 return kUnsupported; | 1307 return kUnsupported; |
1300 } | 1308 } |
1301 | 1309 |
1302 #undef OpcodeToBitNumber | 1310 #undef OpcodeToBitNumber |
1303 #undef FunctionFieldToBitNumber | 1311 #undef FunctionFieldToBitNumber |
1304 } // namespace internal | 1312 } // namespace internal |
1305 } // namespace v8 | 1313 } // namespace v8 |
1306 | 1314 |
1307 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 1315 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
OLD | NEW |