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

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

Issue 1119203003: MIPS: Add float instructions and test coverage, part one (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Bug fix in MIPS10 assembler test 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
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 #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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 CVT_L_S = ((4 << 3) + 5), 470 CVT_L_S = ((4 << 3) + 5),
471 CVT_PS_S = ((4 << 3) + 6), 471 CVT_PS_S = ((4 << 3) + 6),
472 // COP1 Encoding of Function Field When rs=D. 472 // COP1 Encoding of Function Field When rs=D.
473 ADD_D = ((0 << 3) + 0), 473 ADD_D = ((0 << 3) + 0),
474 SUB_D = ((0 << 3) + 1), 474 SUB_D = ((0 << 3) + 1),
475 MUL_D = ((0 << 3) + 2), 475 MUL_D = ((0 << 3) + 2),
476 DIV_D = ((0 << 3) + 3), 476 DIV_D = ((0 << 3) + 3),
477 SQRT_D = ((0 << 3) + 4), 477 SQRT_D = ((0 << 3) + 4),
478 ABS_D = ((0 << 3) + 5), 478 ABS_D = ((0 << 3) + 5),
479 MOV_D = ((0 << 3) + 6), 479 MOV_D = ((0 << 3) + 6),
480 NEG_D = ((0 << 3) + 7), 480 NEG_D = ((0 << 3) + 7),
paul.l... 2015/05/09 01:07:47 We have inconsistency in naming with many of these
Djordje.Pesic 2015/05/14 13:22:30 Done.
481 ROUND_L_D = ((1 << 3) + 0), 481 ROUND_L_D = ((1 << 3) + 0),
482 TRUNC_L_D = ((1 << 3) + 1), 482 TRUNC_L_D = ((1 << 3) + 1),
483 CEIL_L_D = ((1 << 3) + 2), 483 CEIL_L_D = ((1 << 3) + 2),
484 FLOOR_L_D = ((1 << 3) + 3), 484 FLOOR_L_D = ((1 << 3) + 3),
485 ROUND_W_D = ((1 << 3) + 4), 485 ROUND_W_D = ((1 << 3) + 4),
486 TRUNC_W_D = ((1 << 3) + 5), 486 TRUNC_W_D = ((1 << 3) + 5),
487 CEIL_W_D = ((1 << 3) + 6), 487 CEIL_W_D = ((1 << 3) + 6),
488 FLOOR_W_D = ((1 << 3) + 7), 488 FLOOR_W_D = ((1 << 3) + 7),
489 RECIP = ((2 << 3) + 5),
490 RSQRT_D = ((2 << 3) + 6),
paul.l... 2015/05/09 01:07:47 These two should be named consistently. Since they
dusmil.imgtec 2015/05/11 13:13:24 For the sake of simulator completeness, let's leav
Djordje.Pesic 2015/05/14 13:22:30 Done.
Djordje.Pesic 2015/05/14 13:22:30 Done.
489 MIN = ((3 << 3) + 4), 491 MIN = ((3 << 3) + 4),
490 MINA = ((3 << 3) + 5), 492 MINA = ((3 << 3) + 5),
491 MAX = ((3 << 3) + 6), 493 MAX = ((3 << 3) + 6),
492 MAXA = ((3 << 3) + 7), 494 MAXA = ((3 << 3) + 7),
493 CVT_S_D = ((4 << 3) + 0), 495 CVT_S_D = ((4 << 3) + 0),
494 CVT_W_D = ((4 << 3) + 4), 496 CVT_W_D = ((4 << 3) + 4),
495 CVT_L_D = ((4 << 3) + 5), 497 CVT_L_D = ((4 << 3) + 5),
496 C_F_D = ((6 << 3) + 0), 498 C_F_D = ((6 << 3) + 0),
497 C_UN_D = ((6 << 3) + 1), 499 C_UN_D = ((6 << 3) + 1),
498 C_EQ_D = ((6 << 3) + 2), 500 C_EQ_D = ((6 << 3) + 2),
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 CMP_SAT = ((3 << 3) + 0), // Reserved, not implemented. 539 CMP_SAT = ((3 << 3) + 0), // Reserved, not implemented.
538 CMP_SOR = ((3 << 3) + 1), 540 CMP_SOR = ((3 << 3) + 1),
539 CMP_SUNE = ((3 << 3) + 2), 541 CMP_SUNE = ((3 << 3) + 2),
540 CMP_SNE = ((3 << 3) + 3), 542 CMP_SNE = ((3 << 3) + 3),
541 CMP_SUGE = ((3 << 3) + 4), // Reserved, not implemented. 543 CMP_SUGE = ((3 << 3) + 4), // Reserved, not implemented.
542 CMP_SOGE = ((3 << 3) + 5), // Reserved, not implemented. 544 CMP_SOGE = ((3 << 3) + 5), // Reserved, not implemented.
543 CMP_SUGT = ((3 << 3) + 6), // Reserved, not implemented. 545 CMP_SUGT = ((3 << 3) + 6), // Reserved, not implemented.
544 CMP_SOGT = ((3 << 3) + 7), // Reserved, not implemented. 546 CMP_SOGT = ((3 << 3) + 7), // Reserved, not implemented.
545 547
546 SEL = ((2 << 3) + 0), 548 SEL = ((2 << 3) + 0),
549 MOVZ_C = ((2 << 3) + 2),
550 MOVN_C = ((2 << 3) + 3),
paul.l... 2015/05/09 01:07:47 Other FP instructions that have _C suffix (to diff
Djordje.Pesic 2015/05/14 13:22:30 Done.
547 SELEQZ_C = ((2 << 3) + 4), // COP1 on FPR registers. 551 SELEQZ_C = ((2 << 3) + 4), // COP1 on FPR registers.
552 MOVF = ((2 << 3) + 1), // Function field for MOVT.fmt and MOVF.fmt
548 SELNEZ_C = ((2 << 3) + 7), // COP1 on FPR registers. 553 SELNEZ_C = ((2 << 3) + 7), // COP1 on FPR registers.
549 // COP1 Encoding of Function Field When rs=PS. 554 // COP1 Encoding of Function Field When rs=PS.
550 // COP1X Encoding of Function Field. 555 // COP1X Encoding of Function Field.
551 MADD_D = ((4 << 3) + 1), 556 MADD_D = ((4 << 3) + 1),
552 557
553 NULLSF = 0 558 NULLSF = 0
554 }; 559 };
555 560
556 561
557 // ----- Emulated conditions. 562 // ----- Emulated conditions.
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 // JS argument slots size. 971 // JS argument slots size.
967 const int kJSArgsSlotsSize = 0 * Instruction::kInstrSize; 972 const int kJSArgsSlotsSize = 0 * Instruction::kInstrSize;
968 // Assembly builtins argument slots size. 973 // Assembly builtins argument slots size.
969 const int kBArgsSlotsSize = 0 * Instruction::kInstrSize; 974 const int kBArgsSlotsSize = 0 * Instruction::kInstrSize;
970 975
971 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; 976 const int kBranchReturnOffset = 2 * Instruction::kInstrSize;
972 977
973 } } // namespace v8::internal 978 } } // namespace v8::internal
974 979
975 #endif // #ifndef V8_MIPS_CONSTANTS_H_ 980 #endif // #ifndef V8_MIPS_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698