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

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

Issue 2778203002: MIPS[64]: Support for some SIMD operations (4) (Closed)
Patch Set: rebased Created 3 years, 8 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/compiler/mips64/instruction-selector-mips64.cc ('k') | src/mips64/assembler-mips64.h » ('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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 // Register aliases. 349 // Register aliases.
350 // cp is assumed to be a callee saved register. 350 // cp is assumed to be a callee saved register.
351 constexpr Register kRootRegister = s6; 351 constexpr Register kRootRegister = s6;
352 constexpr Register cp = s7; 352 constexpr Register cp = s7;
353 constexpr Register kLithiumScratchReg = s3; 353 constexpr Register kLithiumScratchReg = s3;
354 constexpr Register kLithiumScratchReg2 = s4; 354 constexpr Register kLithiumScratchReg2 = s4;
355 constexpr DoubleRegister kLithiumScratchDouble = f30; 355 constexpr DoubleRegister kLithiumScratchDouble = f30;
356 constexpr DoubleRegister kDoubleRegZero = f28; 356 constexpr DoubleRegister kDoubleRegZero = f28;
357 // Used on mips32r6 for compare operations. 357 // Used on mips32r6 for compare operations.
358 constexpr DoubleRegister kDoubleCompareReg = f26; 358 constexpr DoubleRegister kDoubleCompareReg = f26;
359 // MSA zero and scratch regs must have the same numbers as FPU zero and scratch
360 constexpr Simd128Register kSimd128RegZero = w28;
361 constexpr Simd128Register kSimd128ScratchReg = w30;
359 362
360 // FPU (coprocessor 1) control registers. 363 // FPU (coprocessor 1) control registers.
361 // Currently only FCSR (#31) is implemented. 364 // Currently only FCSR (#31) is implemented.
362 struct FPUControlRegister { 365 struct FPUControlRegister {
363 bool is_valid() const { return reg_code == kFCSRRegister; } 366 bool is_valid() const { return reg_code == kFCSRRegister; }
364 bool is(FPUControlRegister creg) const { return reg_code == creg.reg_code; } 367 bool is(FPUControlRegister creg) const { return reg_code == creg.reg_code; }
365 int code() const { 368 int code() const {
366 DCHECK(is_valid()); 369 DCHECK(is_valid());
367 return reg_code; 370 return reg_code;
368 } 371 }
(...skipping 1830 matching lines...) Expand 10 before | Expand all | Expand 10 after
2199 public: 2202 public:
2200 explicit EnsureSpace(Assembler* assembler) { 2203 explicit EnsureSpace(Assembler* assembler) {
2201 assembler->CheckBuffer(); 2204 assembler->CheckBuffer();
2202 } 2205 }
2203 }; 2206 };
2204 2207
2205 } // namespace internal 2208 } // namespace internal
2206 } // namespace v8 2209 } // namespace v8
2207 2210
2208 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 2211 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/compiler/mips64/instruction-selector-mips64.cc ('k') | src/mips64/assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698