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

Side by Side Diff: test/cctest/wasm/wasm-run-utils.h

Issue 2514663002: [simd] Disable Simd Scalar lowering for x64, enable tests for all other architectures. (Closed)
Patch Set: Bill's review Created 4 years 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 | « test/cctest/cctest.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 WASM_RUN_UTILS_H 5 #ifndef WASM_RUN_UTILS_H
6 #define WASM_RUN_UTILS_H 6 #define WASM_RUN_UTILS_H
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <string.h> 10 #include <string.h>
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 ptrdiff_t pc = result.error_pc - result.start; 301 ptrdiff_t pc = result.error_pc - result.start;
302 ptrdiff_t pt = result.error_pt - result.start; 302 ptrdiff_t pt = result.error_pt - result.start;
303 std::ostringstream str; 303 std::ostringstream str;
304 str << "Verification failed: " << result.error_code << " pc = +" << pc; 304 str << "Verification failed: " << result.error_code << " pc = +" << pc;
305 if (result.error_pt) str << ", pt = +" << pt; 305 if (result.error_pt) str << ", pt = +" << pt;
306 str << ", msg = " << result.error_msg.get(); 306 str << ", msg = " << result.error_msg.get();
307 FATAL(str.str().c_str()); 307 FATAL(str.str().c_str());
308 } 308 }
309 builder.Int64LoweringForTesting(); 309 builder.Int64LoweringForTesting();
310 builder.SimdScalarLoweringForTesting(); 310 if (!CpuFeatures::SupportsSimd128()) {
311 builder.SimdScalarLoweringForTesting();
312 }
311 } 313 }
312 314
313 template <typename ReturnType> 315 template <typename ReturnType>
314 class WasmFunctionWrapper : public HandleAndZoneScope, 316 class WasmFunctionWrapper : public HandleAndZoneScope,
315 private GraphAndBuilders { 317 private GraphAndBuilders {
316 public: 318 public:
317 WasmFunctionWrapper() 319 WasmFunctionWrapper()
318 : GraphAndBuilders(main_zone()), 320 : GraphAndBuilders(main_zone()),
319 inner_code_node_(nullptr), 321 inner_code_node_(nullptr),
320 signature_(nullptr) { 322 signature_(nullptr) {
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 // interpreter. 794 // interpreter.
793 #define WASM_EXEC_TEST(name) \ 795 #define WASM_EXEC_TEST(name) \
794 void RunWasm_##name(WasmExecutionMode execution_mode); \ 796 void RunWasm_##name(WasmExecutionMode execution_mode); \
795 TEST(RunWasmCompiled_##name) { RunWasm_##name(kExecuteCompiled); } \ 797 TEST(RunWasmCompiled_##name) { RunWasm_##name(kExecuteCompiled); } \
796 TEST(RunWasmInterpreted_##name) { RunWasm_##name(kExecuteInterpreted); } \ 798 TEST(RunWasmInterpreted_##name) { RunWasm_##name(kExecuteInterpreted); } \
797 void RunWasm_##name(WasmExecutionMode execution_mode) 799 void RunWasm_##name(WasmExecutionMode execution_mode)
798 800
799 } // namespace 801 } // namespace
800 802
801 #endif 803 #endif
OLDNEW
« no previous file with comments | « test/cctest/cctest.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698