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

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

Issue 1755013003: [wasm] add rotate opcodes (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: no renumbering Created 4 years, 9 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
« no previous file with comments | « test/mjsunit/wasm/wasm-constants.js ('k') | test/unittests/wasm/wasm-macro-gen-unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 VERIFY(WASM_I32_DIVS(WASM_GET_LOCAL(0), WASM_I8(15))); 863 VERIFY(WASM_I32_DIVS(WASM_GET_LOCAL(0), WASM_I8(15)));
864 VERIFY(WASM_I32_DIVU(WASM_GET_LOCAL(0), WASM_I8(16))); 864 VERIFY(WASM_I32_DIVU(WASM_GET_LOCAL(0), WASM_I8(16)));
865 VERIFY(WASM_I32_REMS(WASM_GET_LOCAL(0), WASM_I8(17))); 865 VERIFY(WASM_I32_REMS(WASM_GET_LOCAL(0), WASM_I8(17)));
866 VERIFY(WASM_I32_REMU(WASM_GET_LOCAL(0), WASM_I8(18))); 866 VERIFY(WASM_I32_REMU(WASM_GET_LOCAL(0), WASM_I8(18)));
867 VERIFY(WASM_I32_AND(WASM_GET_LOCAL(0), WASM_I8(19))); 867 VERIFY(WASM_I32_AND(WASM_GET_LOCAL(0), WASM_I8(19)));
868 VERIFY(WASM_I32_IOR(WASM_GET_LOCAL(0), WASM_I8(20))); 868 VERIFY(WASM_I32_IOR(WASM_GET_LOCAL(0), WASM_I8(20)));
869 VERIFY(WASM_I32_XOR(WASM_GET_LOCAL(0), WASM_I8(21))); 869 VERIFY(WASM_I32_XOR(WASM_GET_LOCAL(0), WASM_I8(21)));
870 VERIFY(WASM_I32_SHL(WASM_GET_LOCAL(0), WASM_I8(22))); 870 VERIFY(WASM_I32_SHL(WASM_GET_LOCAL(0), WASM_I8(22)));
871 VERIFY(WASM_I32_SHR(WASM_GET_LOCAL(0), WASM_I8(23))); 871 VERIFY(WASM_I32_SHR(WASM_GET_LOCAL(0), WASM_I8(23)));
872 VERIFY(WASM_I32_SAR(WASM_GET_LOCAL(0), WASM_I8(24))); 872 VERIFY(WASM_I32_SAR(WASM_GET_LOCAL(0), WASM_I8(24)));
873 VERIFY(WASM_I32_ROR(WASM_GET_LOCAL(0), WASM_I8(24)));
874 VERIFY(WASM_I32_ROL(WASM_GET_LOCAL(0), WASM_I8(24)));
873 VERIFY(WASM_I32_EQ(WASM_GET_LOCAL(0), WASM_I8(25))); 875 VERIFY(WASM_I32_EQ(WASM_GET_LOCAL(0), WASM_I8(25)));
874 VERIFY(WASM_I32_NE(WASM_GET_LOCAL(0), WASM_I8(25))); 876 VERIFY(WASM_I32_NE(WASM_GET_LOCAL(0), WASM_I8(25)));
875 877
876 VERIFY(WASM_I32_LTS(WASM_GET_LOCAL(0), WASM_I8(26))); 878 VERIFY(WASM_I32_LTS(WASM_GET_LOCAL(0), WASM_I8(26)));
877 VERIFY(WASM_I32_LES(WASM_GET_LOCAL(0), WASM_I8(27))); 879 VERIFY(WASM_I32_LES(WASM_GET_LOCAL(0), WASM_I8(27)));
878 VERIFY(WASM_I32_LTU(WASM_GET_LOCAL(0), WASM_I8(28))); 880 VERIFY(WASM_I32_LTU(WASM_GET_LOCAL(0), WASM_I8(28)));
879 VERIFY(WASM_I32_LEU(WASM_GET_LOCAL(0), WASM_I8(29))); 881 VERIFY(WASM_I32_LEU(WASM_GET_LOCAL(0), WASM_I8(29)));
880 882
881 VERIFY(WASM_I32_GTS(WASM_GET_LOCAL(0), WASM_I8(26))); 883 VERIFY(WASM_I32_GTS(WASM_GET_LOCAL(0), WASM_I8(26)));
882 VERIFY(WASM_I32_GES(WASM_GET_LOCAL(0), WASM_I8(27))); 884 VERIFY(WASM_I32_GES(WASM_GET_LOCAL(0), WASM_I8(27)));
(...skipping 17 matching lines...) Expand all
900 VERIFY_L_LL(WASM_I64_DIVU(WASM_GET_LOCAL(0), WASM_I64(16))); 902 VERIFY_L_LL(WASM_I64_DIVU(WASM_GET_LOCAL(0), WASM_I64(16)));
901 VERIFY_L_LL(WASM_I64_REMS(WASM_GET_LOCAL(0), WASM_I64(17))); 903 VERIFY_L_LL(WASM_I64_REMS(WASM_GET_LOCAL(0), WASM_I64(17)));
902 VERIFY_L_LL(WASM_I64_REMU(WASM_GET_LOCAL(0), WASM_I64(18))); 904 VERIFY_L_LL(WASM_I64_REMU(WASM_GET_LOCAL(0), WASM_I64(18)));
903 VERIFY_L_LL(WASM_I64_AND(WASM_GET_LOCAL(0), WASM_I64(19))); 905 VERIFY_L_LL(WASM_I64_AND(WASM_GET_LOCAL(0), WASM_I64(19)));
904 VERIFY_L_LL(WASM_I64_IOR(WASM_GET_LOCAL(0), WASM_I64(20))); 906 VERIFY_L_LL(WASM_I64_IOR(WASM_GET_LOCAL(0), WASM_I64(20)));
905 VERIFY_L_LL(WASM_I64_XOR(WASM_GET_LOCAL(0), WASM_I64(21))); 907 VERIFY_L_LL(WASM_I64_XOR(WASM_GET_LOCAL(0), WASM_I64(21)));
906 908
907 VERIFY_L_LL(WASM_I64_SHL(WASM_GET_LOCAL(0), WASM_I64(22))); 909 VERIFY_L_LL(WASM_I64_SHL(WASM_GET_LOCAL(0), WASM_I64(22)));
908 VERIFY_L_LL(WASM_I64_SHR(WASM_GET_LOCAL(0), WASM_I64(23))); 910 VERIFY_L_LL(WASM_I64_SHR(WASM_GET_LOCAL(0), WASM_I64(23)));
909 VERIFY_L_LL(WASM_I64_SAR(WASM_GET_LOCAL(0), WASM_I64(24))); 911 VERIFY_L_LL(WASM_I64_SAR(WASM_GET_LOCAL(0), WASM_I64(24)));
912 VERIFY_L_LL(WASM_I64_ROR(WASM_GET_LOCAL(0), WASM_I64(24)));
913 VERIFY_L_LL(WASM_I64_ROL(WASM_GET_LOCAL(0), WASM_I64(24)));
910 914
911 VERIFY_I_LL(WASM_I64_LTS(WASM_GET_LOCAL(0), WASM_I64(26))); 915 VERIFY_I_LL(WASM_I64_LTS(WASM_GET_LOCAL(0), WASM_I64(26)));
912 VERIFY_I_LL(WASM_I64_LES(WASM_GET_LOCAL(0), WASM_I64(27))); 916 VERIFY_I_LL(WASM_I64_LES(WASM_GET_LOCAL(0), WASM_I64(27)));
913 VERIFY_I_LL(WASM_I64_LTU(WASM_GET_LOCAL(0), WASM_I64(28))); 917 VERIFY_I_LL(WASM_I64_LTU(WASM_GET_LOCAL(0), WASM_I64(28)));
914 VERIFY_I_LL(WASM_I64_LEU(WASM_GET_LOCAL(0), WASM_I64(29))); 918 VERIFY_I_LL(WASM_I64_LEU(WASM_GET_LOCAL(0), WASM_I64(29)));
915 919
916 VERIFY_I_LL(WASM_I64_GTS(WASM_GET_LOCAL(0), WASM_I64(26))); 920 VERIFY_I_LL(WASM_I64_GTS(WASM_GET_LOCAL(0), WASM_I64(26)));
917 VERIFY_I_LL(WASM_I64_GES(WASM_GET_LOCAL(0), WASM_I64(27))); 921 VERIFY_I_LL(WASM_I64_GES(WASM_GET_LOCAL(0), WASM_I64(27)));
918 VERIFY_I_LL(WASM_I64_GTU(WASM_GET_LOCAL(0), WASM_I64(28))); 922 VERIFY_I_LL(WASM_I64_GTU(WASM_GET_LOCAL(0), WASM_I64(28)));
919 VERIFY_I_LL(WASM_I64_GEU(WASM_GET_LOCAL(0), WASM_I64(29))); 923 VERIFY_I_LL(WASM_I64_GEU(WASM_GET_LOCAL(0), WASM_I64(29)));
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after
2332 EXPECT_ARITY(1, kExprF64SConvertI64); 2336 EXPECT_ARITY(1, kExprF64SConvertI64);
2333 EXPECT_ARITY(1, kExprF64UConvertI64); 2337 EXPECT_ARITY(1, kExprF64UConvertI64);
2334 EXPECT_ARITY(1, kExprF64ConvertF32); 2338 EXPECT_ARITY(1, kExprF64ConvertF32);
2335 EXPECT_ARITY(1, kExprF64ReinterpretI64); 2339 EXPECT_ARITY(1, kExprF64ReinterpretI64);
2336 EXPECT_ARITY(1, kExprI32ReinterpretF32); 2340 EXPECT_ARITY(1, kExprI32ReinterpretF32);
2337 EXPECT_ARITY(1, kExprI64ReinterpretF64); 2341 EXPECT_ARITY(1, kExprI64ReinterpretF64);
2338 } 2342 }
2339 } // namespace wasm 2343 } // namespace wasm
2340 } // namespace internal 2344 } // namespace internal
2341 } // namespace v8 2345 } // namespace v8
OLDNEW
« no previous file with comments | « test/mjsunit/wasm/wasm-constants.js ('k') | test/unittests/wasm/wasm-macro-gen-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698