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

Side by Side Diff: test/cctest/wasm/test-run-wasm.cc

Issue 1846613002: [wasm] Fix and enable more tests. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include <stdint.h> 5 #include <stdint.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "src/wasm/wasm-macro-gen.h" 9 #include "src/wasm/wasm-macro-gen.h"
10 10
(...skipping 2071 matching lines...) Expand 10 before | Expand all | Expand 10 after
2082 FOR_FLOAT32_INPUTS(j) { CHECK_FLOAT_EQ(*i - *j, r.Call(*i, *j)); } 2082 FOR_FLOAT32_INPUTS(j) { CHECK_FLOAT_EQ(*i - *j, r.Call(*i, *j)); }
2083 } 2083 }
2084 } 2084 }
2085 2085
2086 2086
2087 TEST(Run_WasmCall_Float64Sub) { 2087 TEST(Run_WasmCall_Float64Sub) {
2088 TestingModule module; 2088 TestingModule module;
2089 double* memory = module.AddMemoryElems<double>(16); 2089 double* memory = module.AddMemoryElems<double>(16);
2090 WasmRunner<int32_t> r(&module); 2090 WasmRunner<int32_t> r(&module);
2091 2091
2092 // TODO(titzer): convert to a binop test.
2093 BUILD(r, WASM_BLOCK( 2092 BUILD(r, WASM_BLOCK(
2094 2, WASM_STORE_MEM( 2093 2, WASM_STORE_MEM(
2095 MachineType::Float64(), WASM_ZERO, 2094 MachineType::Float64(), WASM_ZERO,
2096 WASM_F64_SUB( 2095 WASM_F64_SUB(
2097 WASM_LOAD_MEM(MachineType::Float64(), WASM_ZERO), 2096 WASM_LOAD_MEM(MachineType::Float64(), WASM_ZERO),
2098 WASM_LOAD_MEM(MachineType::Float64(), WASM_I8(8)))), 2097 WASM_LOAD_MEM(MachineType::Float64(), WASM_I8(8)))),
2099 WASM_I8(107))); 2098 WASM_I8(107)));
2100 2099
2101 FOR_FLOAT64_INPUTS(i) { 2100 FOR_FLOAT64_INPUTS(i) {
2102 FOR_FLOAT64_INPUTS(j) { 2101 FOR_FLOAT64_INPUTS(j) {
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
2814 2813
2815 #if WASM_64 2814 #if WASM_64
2816 TEST(Compile_Wasm_CallIndirect_Many_i64) { CompileCallIndirectMany(kAstI64); } 2815 TEST(Compile_Wasm_CallIndirect_Many_i64) { CompileCallIndirectMany(kAstI64); }
2817 #endif 2816 #endif
2818 2817
2819 2818
2820 TEST(Compile_Wasm_CallIndirect_Many_f32) { CompileCallIndirectMany(kAstF32); } 2819 TEST(Compile_Wasm_CallIndirect_Many_f32) { CompileCallIndirectMany(kAstF32); }
2821 2820
2822 2821
2823 TEST(Compile_Wasm_CallIndirect_Many_f64) { CompileCallIndirectMany(kAstF64); } 2822 TEST(Compile_Wasm_CallIndirect_Many_f64) { CompileCallIndirectMany(kAstF64); }
OLDNEW
« no previous file with comments | « no previous file | test/cctest/wasm/test-run-wasm-64.cc » ('j') | test/cctest/wasm/test-run-wasm-64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698