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

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

Issue 2639443002: [ARM] Refactor NEON binary ops in assembler. (Closed)
Patch Set: Make NeonDataType match NeonSize. Created 3 years, 11 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/arm/assembler-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_ARM_CONSTANTS_ARM_H_ 5 #ifndef V8_ARM_CONSTANTS_ARM_H_
6 #define V8_ARM_CONSTANTS_ARM_H_ 6 #define V8_ARM_CONSTANTS_ARM_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "src/base/logging.h" 10 #include "src/base/logging.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 // Coprocessor load/store operand size. 321 // Coprocessor load/store operand size.
322 enum LFlag { 322 enum LFlag {
323 Long = 1 << 22, // Long load/store coprocessor. 323 Long = 1 << 22, // Long load/store coprocessor.
324 Short = 0 << 22 // Short load/store coprocessor. 324 Short = 0 << 22 // Short load/store coprocessor.
325 }; 325 };
326 326
327 327
328 // NEON data type 328 // NEON data type
329 enum NeonDataType { 329 enum NeonDataType {
330 NeonS8 = 0x1, // U = 0, imm3 = 0b001 330 NeonS8 = 0,
331 NeonS16 = 0x2, // U = 0, imm3 = 0b010 331 NeonS16 = 1,
332 NeonS32 = 0x4, // U = 0, imm3 = 0b100 332 NeonS32 = 2,
333 NeonU8 = 1 << 24 | 0x1, // U = 1, imm3 = 0b001 333 // Gap to make it easier to extract U and size.
334 NeonU16 = 1 << 24 | 0x2, // U = 1, imm3 = 0b010 334 NeonU8 = 4,
335 NeonU32 = 1 << 24 | 0x4, // U = 1, imm3 = 0b100 335 NeonU16 = 5,
336 NeonDataTypeSizeMask = 0x7, 336 NeonU32 = 6
337 NeonDataTypeUMask = 1 << 24
338 }; 337 };
339 338
339 inline int NeonU(NeonDataType dt) { return static_cast<int>(dt) >> 2; }
340 inline int NeonSz(NeonDataType dt) { return static_cast<int>(dt) & 0x3; }
341
340 enum NeonListType { 342 enum NeonListType {
341 nlt_1 = 0x7, 343 nlt_1 = 0x7,
342 nlt_2 = 0xA, 344 nlt_2 = 0xA,
343 nlt_3 = 0x6, 345 nlt_3 = 0x6,
344 nlt_4 = 0x2 346 nlt_4 = 0x2
345 }; 347 };
346 348
347 enum NeonSize { 349 enum NeonSize {
348 Neon8 = 0x0, 350 Neon8 = 0x0,
349 Neon16 = 0x1, 351 Neon16 = 0x1,
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 724
723 private: 725 private:
724 static const char* names_[kNumVFPRegisters]; 726 static const char* names_[kNumVFPRegisters];
725 }; 727 };
726 728
727 729
728 } // namespace internal 730 } // namespace internal
729 } // namespace v8 731 } // namespace v8
730 732
731 #endif // V8_ARM_CONSTANTS_ARM_H_ 733 #endif // V8_ARM_CONSTANTS_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698