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

Side by Side Diff: test/cctest/compiler/value-helper.h

Issue 614013002: [turbofan] intel lea add multiply matchers (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_CCTEST_COMPILER_VALUE_HELPER_H_ 5 #ifndef V8_CCTEST_COMPILER_VALUE_HELPER_H_
6 #define V8_CCTEST_COMPILER_VALUE_HELPER_H_ 6 #define V8_CCTEST_COMPILER_VALUE_HELPER_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 114 }
115 115
116 static const std::vector<int32_t> int32_vector() { 116 static const std::vector<int32_t> int32_vector() {
117 std::vector<uint32_t> values = uint32_vector(); 117 std::vector<uint32_t> values = uint32_vector();
118 return std::vector<int32_t>(values.begin(), values.end()); 118 return std::vector<int32_t>(values.begin(), values.end());
119 } 119 }
120 120
121 static const std::vector<uint32_t> uint32_vector() { 121 static const std::vector<uint32_t> uint32_vector() {
122 static const uint32_t kValues[] = { 122 static const uint32_t kValues[] = {
123 0x00000000, 0x00000001, 0xffffffff, 0x1b09788b, 0x04c5fce8, 0xcc0de5bf, 123 0x00000000, 0x00000001, 0xffffffff, 0x1b09788b, 0x04c5fce8, 0xcc0de5bf,
124 // This row is useful for testing lea optimizations on intel.
125 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000008, 0x00000009,
124 0x273a798e, 0x187937a3, 0xece3af83, 0x5495a16b, 0x0b668ecc, 0x11223344, 126 0x273a798e, 0x187937a3, 0xece3af83, 0x5495a16b, 0x0b668ecc, 0x11223344,
125 0x0000009e, 0x00000043, 0x0000af73, 0x0000116b, 0x00658ecc, 0x002b3b4c, 127 0x0000009e, 0x00000043, 0x0000af73, 0x0000116b, 0x00658ecc, 0x002b3b4c,
126 0x88776655, 0x70000000, 0x07200000, 0x7fffffff, 0x56123761, 0x7fffff00, 128 0x88776655, 0x70000000, 0x07200000, 0x7fffffff, 0x56123761, 0x7fffff00,
127 0x761c4761, 0x80000000, 0x88888888, 0xa0000000, 0xdddddddd, 0xe0000000, 129 0x761c4761, 0x80000000, 0x88888888, 0xa0000000, 0xdddddddd, 0xe0000000,
128 0xeeeeeeee, 0xfffffffd, 0xf0000000, 0x007fffff, 0x003fffff, 0x001fffff, 130 0xeeeeeeee, 0xfffffffd, 0xf0000000, 0x007fffff, 0x003fffff, 0x001fffff,
129 0x000fffff, 0x0007ffff, 0x0003ffff, 0x0001ffff, 0x0000ffff, 0x00007fff, 131 0x000fffff, 0x0007ffff, 0x0003ffff, 0x0001ffff, 0x0000ffff, 0x00007fff,
130 0x00003fff, 0x00001fff, 0x00000fff, 0x000007ff, 0x000003ff, 0x000001ff}; 132 0x00003fff, 0x00001fff, 0x00000fff, 0x000007ff, 0x000003ff, 0x000001ff};
131 return std::vector<uint32_t>(&kValues[0], &kValues[arraysize(kValues)]); 133 return std::vector<uint32_t>(&kValues[0], &kValues[arraysize(kValues)]);
132 } 134 }
133 135
(...skipping 27 matching lines...) Expand all
161 163
162 #define FOR_INT32_SHIFTS(var) for (int32_t var = 0; var < 32; var++) 164 #define FOR_INT32_SHIFTS(var) for (int32_t var = 0; var < 32; var++)
163 165
164 #define FOR_UINT32_SHIFTS(var) for (uint32_t var = 0; var < 32; var++) 166 #define FOR_UINT32_SHIFTS(var) for (uint32_t var = 0; var < 32; var++)
165 167
166 } // namespace compiler 168 } // namespace compiler
167 } // namespace internal 169 } // namespace internal
168 } // namespace v8 170 } // namespace v8
169 171
170 #endif // V8_CCTEST_COMPILER_VALUE_HELPER_H_ 172 #endif // V8_CCTEST_COMPILER_VALUE_HELPER_H_
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-run-machops.cc ('k') | test/unittests/compiler/ia32/instruction-selector-ia32-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698