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

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: 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 MOV_D = ((0 << 3) + 6), 479 MOV_D = ((0 << 3) + 6),
480 NEG_D = ((0 << 3) + 7), 480 NEG_D = ((0 << 3) + 7),
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),
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),
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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 // JS argument slots size. 934 // JS argument slots size.
930 const int kJSArgsSlotsSize = 0 * Instruction::kInstrSize; 935 const int kJSArgsSlotsSize = 0 * Instruction::kInstrSize;
931 // Assembly builtins argument slots size. 936 // Assembly builtins argument slots size.
932 const int kBArgsSlotsSize = 0 * Instruction::kInstrSize; 937 const int kBArgsSlotsSize = 0 * Instruction::kInstrSize;
933 938
934 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; 939 const int kBranchReturnOffset = 2 * Instruction::kInstrSize;
935 940
936 } } // namespace v8::internal 941 } } // namespace v8::internal
937 942
938 #endif // #ifndef V8_MIPS_CONSTANTS_H_ 943 #endif // #ifndef V8_MIPS_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698