| 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 #include "src/globals.h" | 7 #include "src/globals.h" |
| 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 ROUND_L_S = ((1U << 3) + 0), | 518 ROUND_L_S = ((1U << 3) + 0), |
| 519 TRUNC_L_S = ((1U << 3) + 1), | 519 TRUNC_L_S = ((1U << 3) + 1), |
| 520 CEIL_L_S = ((1U << 3) + 2), | 520 CEIL_L_S = ((1U << 3) + 2), |
| 521 FLOOR_L_S = ((1U << 3) + 3), | 521 FLOOR_L_S = ((1U << 3) + 3), |
| 522 ROUND_W_S = ((1U << 3) + 4), | 522 ROUND_W_S = ((1U << 3) + 4), |
| 523 TRUNC_W_S = ((1U << 3) + 5), | 523 TRUNC_W_S = ((1U << 3) + 5), |
| 524 CEIL_W_S = ((1U << 3) + 6), | 524 CEIL_W_S = ((1U << 3) + 6), |
| 525 FLOOR_W_S = ((1U << 3) + 7), | 525 FLOOR_W_S = ((1U << 3) + 7), |
| 526 RECIP_S = ((2U << 3) + 5), | 526 RECIP_S = ((2U << 3) + 5), |
| 527 RSQRT_S = ((2U << 3) + 6), | 527 RSQRT_S = ((2U << 3) + 6), |
| 528 MADDF_S = ((3U << 3) + 0), |
| 529 MSUBF_S = ((3U << 3) + 1), |
| 528 CLASS_S = ((3U << 3) + 3), | 530 CLASS_S = ((3U << 3) + 3), |
| 529 CVT_D_S = ((4U << 3) + 1), | 531 CVT_D_S = ((4U << 3) + 1), |
| 530 CVT_W_S = ((4U << 3) + 4), | 532 CVT_W_S = ((4U << 3) + 4), |
| 531 CVT_L_S = ((4U << 3) + 5), | 533 CVT_L_S = ((4U << 3) + 5), |
| 532 CVT_PS_S = ((4U << 3) + 6), | 534 CVT_PS_S = ((4U << 3) + 6), |
| 533 | 535 |
| 534 // COP1 Encoding of Function Field When rs=D. | 536 // COP1 Encoding of Function Field When rs=D. |
| 535 ADD_D = ((0U << 3) + 0), | 537 ADD_D = ((0U << 3) + 0), |
| 536 SUB_D = ((0U << 3) + 1), | 538 SUB_D = ((0U << 3) + 1), |
| 537 MUL_D = ((0U << 3) + 2), | 539 MUL_D = ((0U << 3) + 2), |
| 538 DIV_D = ((0U << 3) + 3), | 540 DIV_D = ((0U << 3) + 3), |
| 539 SQRT_D = ((0U << 3) + 4), | 541 SQRT_D = ((0U << 3) + 4), |
| 540 ABS_D = ((0U << 3) + 5), | 542 ABS_D = ((0U << 3) + 5), |
| 541 MOV_D = ((0U << 3) + 6), | 543 MOV_D = ((0U << 3) + 6), |
| 542 NEG_D = ((0U << 3) + 7), | 544 NEG_D = ((0U << 3) + 7), |
| 543 ROUND_L_D = ((1U << 3) + 0), | 545 ROUND_L_D = ((1U << 3) + 0), |
| 544 TRUNC_L_D = ((1U << 3) + 1), | 546 TRUNC_L_D = ((1U << 3) + 1), |
| 545 CEIL_L_D = ((1U << 3) + 2), | 547 CEIL_L_D = ((1U << 3) + 2), |
| 546 FLOOR_L_D = ((1U << 3) + 3), | 548 FLOOR_L_D = ((1U << 3) + 3), |
| 547 ROUND_W_D = ((1U << 3) + 4), | 549 ROUND_W_D = ((1U << 3) + 4), |
| 548 TRUNC_W_D = ((1U << 3) + 5), | 550 TRUNC_W_D = ((1U << 3) + 5), |
| 549 CEIL_W_D = ((1U << 3) + 6), | 551 CEIL_W_D = ((1U << 3) + 6), |
| 550 FLOOR_W_D = ((1U << 3) + 7), | 552 FLOOR_W_D = ((1U << 3) + 7), |
| 551 RECIP_D = ((2U << 3) + 5), | 553 RECIP_D = ((2U << 3) + 5), |
| 552 RSQRT_D = ((2U << 3) + 6), | 554 RSQRT_D = ((2U << 3) + 6), |
| 555 MADDF_D = ((3U << 3) + 0), |
| 556 MSUBF_D = ((3U << 3) + 1), |
| 553 CLASS_D = ((3U << 3) + 3), | 557 CLASS_D = ((3U << 3) + 3), |
| 554 MIN = ((3U << 3) + 4), | 558 MIN = ((3U << 3) + 4), |
| 555 MINA = ((3U << 3) + 5), | 559 MINA = ((3U << 3) + 5), |
| 556 MAX = ((3U << 3) + 6), | 560 MAX = ((3U << 3) + 6), |
| 557 MAXA = ((3U << 3) + 7), | 561 MAXA = ((3U << 3) + 7), |
| 558 CVT_S_D = ((4U << 3) + 0), | 562 CVT_S_D = ((4U << 3) + 0), |
| 559 CVT_W_D = ((4U << 3) + 4), | 563 CVT_W_D = ((4U << 3) + 4), |
| 560 CVT_L_D = ((4U << 3) + 5), | 564 CVT_L_D = ((4U << 3) + 5), |
| 561 C_F_D = ((6U << 3) + 0), | 565 C_F_D = ((6U << 3) + 0), |
| 562 C_UN_D = ((6U << 3) + 1), | 566 C_UN_D = ((6U << 3) + 1), |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 CMP_SUGT = ((3U << 3) + 6), // Reserved, not implemented. | 613 CMP_SUGT = ((3U << 3) + 6), // Reserved, not implemented. |
| 610 CMP_SOGT = ((3U << 3) + 7), // Reserved, not implemented. | 614 CMP_SOGT = ((3U << 3) + 7), // Reserved, not implemented. |
| 611 | 615 |
| 612 SEL = ((2U << 3) + 0), | 616 SEL = ((2U << 3) + 0), |
| 613 MOVZ_C = ((2U << 3) + 2), | 617 MOVZ_C = ((2U << 3) + 2), |
| 614 MOVN_C = ((2U << 3) + 3), | 618 MOVN_C = ((2U << 3) + 3), |
| 615 SELEQZ_C = ((2U << 3) + 4), // COP1 on FPR registers. | 619 SELEQZ_C = ((2U << 3) + 4), // COP1 on FPR registers. |
| 616 MOVF = ((2U << 3) + 1), // Function field for MOVT.fmt and MOVF.fmt | 620 MOVF = ((2U << 3) + 1), // Function field for MOVT.fmt and MOVF.fmt |
| 617 SELNEZ_C = ((2U << 3) + 7), // COP1 on FPR registers. | 621 SELNEZ_C = ((2U << 3) + 7), // COP1 on FPR registers. |
| 618 // COP1 Encoding of Function Field When rs=PS. | 622 // COP1 Encoding of Function Field When rs=PS. |
| 623 |
| 619 // COP1X Encoding of Function Field. | 624 // COP1X Encoding of Function Field. |
| 625 MADD_S = ((4U << 3) + 0), |
| 620 MADD_D = ((4U << 3) + 1), | 626 MADD_D = ((4U << 3) + 1), |
| 627 MSUB_S = ((5U << 3) + 0), |
| 628 MSUB_D = ((5U << 3) + 1), |
| 621 | 629 |
| 622 // PCREL Encoding of rt Field. | 630 // PCREL Encoding of rt Field. |
| 623 ADDIUPC = ((0U << 2) + 0), | 631 ADDIUPC = ((0U << 2) + 0), |
| 624 LWPC = ((0U << 2) + 1), | 632 LWPC = ((0U << 2) + 1), |
| 625 AUIPC = ((3U << 3) + 6), | 633 AUIPC = ((3U << 3) + 6), |
| 626 ALUIPC = ((3U << 3) + 7), | 634 ALUIPC = ((3U << 3) + 7), |
| 627 | 635 |
| 628 // POP66 Encoding of rs Field. | 636 // POP66 Encoding of rs Field. |
| 629 JIC = ((0U << 5) + 0), | 637 JIC = ((0U << 5) + 0), |
| 630 | 638 |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1229 } | 1237 } |
| 1230 } | 1238 } |
| 1231 } | 1239 } |
| 1232 | 1240 |
| 1233 #undef OpcodeToBitNumber | 1241 #undef OpcodeToBitNumber |
| 1234 #undef FunctionFieldToBitNumber | 1242 #undef FunctionFieldToBitNumber |
| 1235 } // namespace internal | 1243 } // namespace internal |
| 1236 } // namespace v8 | 1244 } // namespace v8 |
| 1237 | 1245 |
| 1238 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 1246 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
| OLD | NEW |