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

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

Issue 2498283002: [wasm] implement simd lowering for replaceLane, load, store and test for phi (Closed)
Patch Set: [wasm] implement simd lowering for replaceLane, load, store and test for phi 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
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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 MachineType p2, MachineType p3) { 782 MachineType p2, MachineType p3) {
783 if (p0 == MachineType::None()) return 0; 783 if (p0 == MachineType::None()) return 0;
784 if (p1 == MachineType::None()) return 1; 784 if (p1 == MachineType::None()) return 1;
785 if (p2 == MachineType::None()) return 2; 785 if (p2 == MachineType::None()) return 2;
786 if (p3 == MachineType::None()) return 3; 786 if (p3 == MachineType::None()) return 3;
787 return 4; 787 return 4;
788 } 788 }
789 }; 789 };
790 790
791 // A macro to define tests that run in different engine configurations. 791 // A macro to define tests that run in different engine configurations.
792 // Currently only supports compiled tests, but a future
793 // RunWasmInterpreted_##name version will allow each test to also run in the
794 // interpreter.
795 #define WASM_EXEC_TEST(name) \ 792 #define WASM_EXEC_TEST(name) \
796 void RunWasm_##name(WasmExecutionMode execution_mode); \ 793 void RunWasm_##name(WasmExecutionMode execution_mode); \
797 TEST(RunWasmCompiled_##name) { RunWasm_##name(kExecuteCompiled); } \ 794 TEST(RunWasmCompiled_##name) { RunWasm_##name(kExecuteCompiled); } \
798 TEST(RunWasmInterpreted_##name) { RunWasm_##name(kExecuteInterpreted); } \ 795 TEST(RunWasmInterpreted_##name) { RunWasm_##name(kExecuteInterpreted); } \
799 void RunWasm_##name(WasmExecutionMode execution_mode) 796 void RunWasm_##name(WasmExecutionMode execution_mode)
800 797
798 #define WASM_EXEC_COMPILED_TEST(name) \
799 void RunWasm_##name(WasmExecutionMode execution_mode); \
800 TEST(RunWasmCompiled_##name) { RunWasm_##name(kExecuteCompiled); } \
801 void RunWasm_##name(WasmExecutionMode execution_mode)
802
801 } // namespace 803 } // namespace
802 804
803 #endif 805 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698