OLD | NEW |
---|---|
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 2481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2492 // kExprI64RemU: | 2492 // kExprI64RemU: |
2493 // kExprI64Ior: | 2493 // kExprI64Ior: |
2494 TEST(Run_WasmI64Ior) { | 2494 TEST(Run_WasmI64Ior) { |
2495 WasmRunner<int64_t> r(MachineType::Int64(), MachineType::Int64()); | 2495 WasmRunner<int64_t> r(MachineType::Int64(), MachineType::Int64()); |
2496 BUILD(r, WASM_I64_IOR(WASM_GET_LOCAL(0), WASM_GET_LOCAL(1))); | 2496 BUILD(r, WASM_I64_IOR(WASM_GET_LOCAL(0), WASM_GET_LOCAL(1))); |
2497 FOR_INT64_INPUTS(i) { | 2497 FOR_INT64_INPUTS(i) { |
2498 FOR_INT64_INPUTS(j) { CHECK_EQ((*i) | (*j), r.Call(*i, *j)); } | 2498 FOR_INT64_INPUTS(j) { CHECK_EQ((*i) | (*j), r.Call(*i, *j)); } |
2499 } | 2499 } |
2500 } | 2500 } |
2501 // kExprI64Xor: | 2501 // kExprI64Xor: |
2502 TEST(Run_WasmI64Xor) { | |
titzer
2016/02/23 00:52:42
This file is going to get big; can we factor out a
| |
2503 WasmRunner<int64_t> r(MachineType::Int64(), MachineType::Int64()); | |
2504 BUILD(r, WASM_I64_XOR(WASM_GET_LOCAL(0), WASM_GET_LOCAL(1))); | |
2505 FOR_INT64_INPUTS(i) { | |
2506 FOR_INT64_INPUTS(j) { CHECK_EQ((*i) ^ (*j), r.Call(*i, *j)); } | |
2507 } | |
2508 } | |
2509 | |
2502 // kExprI64Shl: | 2510 // kExprI64Shl: |
2503 // kExprI64ShrU: | 2511 // kExprI64ShrU: |
2504 // kExprI64ShrS: | 2512 // kExprI64ShrS: |
2505 // kExprI64Eq: | 2513 // kExprI64Eq: |
2506 // kExprI64Ne: | 2514 // kExprI64Ne: |
2507 // kExprI64LtS: | 2515 // kExprI64LtS: |
2508 // kExprI64LeS: | 2516 // kExprI64LeS: |
2509 // kExprI64LtU: | 2517 // kExprI64LtU: |
2510 // kExprI64LeU: | 2518 // kExprI64LeU: |
2511 // kExprI64GtS: | 2519 // kExprI64GtS: |
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3502 | 3510 |
3503 #if WASM_64 | 3511 #if WASM_64 |
3504 TEST(Compile_Wasm_CallIndirect_Many_i64) { CompileCallIndirectMany(kAstI64); } | 3512 TEST(Compile_Wasm_CallIndirect_Many_i64) { CompileCallIndirectMany(kAstI64); } |
3505 #endif | 3513 #endif |
3506 | 3514 |
3507 | 3515 |
3508 TEST(Compile_Wasm_CallIndirect_Many_f32) { CompileCallIndirectMany(kAstF32); } | 3516 TEST(Compile_Wasm_CallIndirect_Many_f32) { CompileCallIndirectMany(kAstF32); } |
3509 | 3517 |
3510 | 3518 |
3511 TEST(Compile_Wasm_CallIndirect_Many_f64) { CompileCallIndirectMany(kAstF64); } | 3519 TEST(Compile_Wasm_CallIndirect_Many_f64) { CompileCallIndirectMany(kAstF64); } |
OLD | NEW |