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

Side by Side Diff: test/unittests/wasm/ast-decoder-unittest.cc

Issue 1991143002: Convert SIMD wasm ops to runtime function calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Bill's review Created 4 years, 7 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 "test/unittests/test-utils.h" 5 #include "test/unittests/test-utils.h"
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "test/cctest/wasm/test-signatures.h" 9 #include "test/cctest/wasm/test-signatures.h"
10 10
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 TestUnop(kExprI32UConvertF32, kAstI32, kAstF32); 902 TestUnop(kExprI32UConvertF32, kAstI32, kAstF32);
903 TestUnop(kExprI32UConvertF64, kAstI32, kAstF64); 903 TestUnop(kExprI32UConvertF64, kAstI32, kAstF64);
904 TestUnop(kExprF64SConvertI32, kAstF64, kAstI32); 904 TestUnop(kExprF64SConvertI32, kAstF64, kAstI32);
905 TestUnop(kExprF64UConvertI32, kAstF64, kAstI32); 905 TestUnop(kExprF64UConvertI32, kAstF64, kAstI32);
906 TestUnop(kExprF64ConvertF32, kAstF64, kAstF32); 906 TestUnop(kExprF64ConvertF32, kAstF64, kAstF32);
907 TestUnop(kExprF32SConvertI32, kAstF32, kAstI32); 907 TestUnop(kExprF32SConvertI32, kAstF32, kAstI32);
908 TestUnop(kExprF32UConvertI32, kAstF32, kAstI32); 908 TestUnop(kExprF32UConvertI32, kAstF32, kAstI32);
909 TestUnop(kExprF32ConvertF64, kAstF32, kAstF64); 909 TestUnop(kExprF32ConvertF64, kAstF32, kAstF64);
910 } 910 }
911 911
912 /*
titzer 2016/05/19 09:43:27 Should this test pass?
gdeepti 2016/07/01 22:24:48 Stale test, removed.
913 TEST_F(AstDecoderTest, SimdOpcodes) {
914 TestUnop(kExprI32x4S128Splat, sigs.s_i());
915 }
916 */
917
912 TEST_F(AstDecoderTest, MacrosStmt) { 918 TEST_F(AstDecoderTest, MacrosStmt) {
913 VERIFY(WASM_SET_LOCAL(0, WASM_I32V_3(87348))); 919 VERIFY(WASM_SET_LOCAL(0, WASM_I32V_3(87348)));
914 VERIFY(WASM_STORE_MEM(MachineType::Int32(), WASM_I8(24), WASM_I8(40))); 920 VERIFY(WASM_STORE_MEM(MachineType::Int32(), WASM_I8(24), WASM_I8(40)));
915 VERIFY(WASM_IF(WASM_GET_LOCAL(0), WASM_NOP)); 921 VERIFY(WASM_IF(WASM_GET_LOCAL(0), WASM_NOP));
916 VERIFY(WASM_IF_ELSE(WASM_GET_LOCAL(0), WASM_NOP, WASM_NOP)); 922 VERIFY(WASM_IF_ELSE(WASM_GET_LOCAL(0), WASM_NOP, WASM_NOP));
917 VERIFY(WASM_NOP); 923 VERIFY(WASM_NOP);
918 VERIFY(B1(WASM_NOP)); 924 VERIFY(B1(WASM_NOP));
919 VERIFY(WASM_LOOP(1, WASM_NOP)); 925 VERIFY(WASM_LOOP(1, WASM_NOP));
920 VERIFY(WASM_LOOP(1, WASM_BREAK(0))); 926 VERIFY(WASM_LOOP(1, WASM_BREAK(0)));
921 VERIFY(WASM_LOOP(1, WASM_CONTINUE(0))); 927 VERIFY(WASM_LOOP(1, WASM_CONTINUE(0)));
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
2438 size_t pos = 0; 2444 size_t pos = 0;
2439 pos = ExpectRun(map, pos, kAstF32, 5); 2445 pos = ExpectRun(map, pos, kAstF32, 5);
2440 pos = ExpectRun(map, pos, kAstI32, 1337); 2446 pos = ExpectRun(map, pos, kAstI32, 1337);
2441 pos = ExpectRun(map, pos, kAstI64, 212); 2447 pos = ExpectRun(map, pos, kAstI64, 212);
2442 delete[] data; 2448 delete[] data;
2443 } 2449 }
2444 2450
2445 } // namespace wasm 2451 } // namespace wasm
2446 } // namespace internal 2452 } // namespace internal
2447 } // namespace v8 2453 } // namespace v8
OLDNEW
« src/wasm/wasm-opcodes.cc ('K') | « test/mjsunit/wasm/wasm-constants.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698