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

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

Issue 1846933002: [turbofan] Handle dead diamonds in scheduling and add a test. (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 2803 matching lines...) Expand 10 before | Expand all | Expand 10 after
2814 2814
2815 #if WASM_64 2815 #if WASM_64
2816 TEST(Compile_Wasm_CallIndirect_Many_i64) { CompileCallIndirectMany(kAstI64); } 2816 TEST(Compile_Wasm_CallIndirect_Many_i64) { CompileCallIndirectMany(kAstI64); }
2817 #endif 2817 #endif
2818 2818
2819 2819
2820 TEST(Compile_Wasm_CallIndirect_Many_f32) { CompileCallIndirectMany(kAstF32); } 2820 TEST(Compile_Wasm_CallIndirect_Many_f32) { CompileCallIndirectMany(kAstF32); }
2821 2821
2822 2822
2823 TEST(Compile_Wasm_CallIndirect_Many_f64) { CompileCallIndirectMany(kAstF64); } 2823 TEST(Compile_Wasm_CallIndirect_Many_f64) { CompileCallIndirectMany(kAstF64); }
2824
2825 TEST(Run_WASM_Int32RemS_dead) {
2826 WasmRunner<int32_t> r(MachineType::Int32(), MachineType::Int32());
2827 BUILD(r, WASM_I32_REMS(WASM_GET_LOCAL(0), WASM_GET_LOCAL(1)), WASM_ZERO);
2828 const int32_t kMin = std::numeric_limits<int32_t>::min();
2829 CHECK_EQ(0, r.Call(133, 100));
2830 CHECK_EQ(0, r.Call(kMin, -1));
2831 CHECK_EQ(0, r.Call(0, 1));
2832 CHECK_TRAP(r.Call(100, 0));
2833 CHECK_TRAP(r.Call(-1001, 0));
2834 CHECK_TRAP(r.Call(kMin, 0));
2835 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698