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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 V(I64LtU, true) \ | 66 V(I64LtU, true) \ |
67 V(I64LeU, true) \ | 67 V(I64LeU, true) \ |
68 V(I64GtS, true) \ | 68 V(I64GtS, true) \ |
69 V(I64GeS, true) \ | 69 V(I64GeS, true) \ |
70 V(I64GtU, true) \ | 70 V(I64GtU, true) \ |
71 V(I64GeU, true) \ | 71 V(I64GeU, true) \ |
72 V(I64Ctz, true) \ | 72 V(I64Ctz, true) \ |
73 V(I64Clz, true) \ | 73 V(I64Clz, true) \ |
74 V(I64Popcnt, !MIPS_OR_X87) \ | 74 V(I64Popcnt, !MIPS_OR_X87) \ |
75 V(I32ConvertI64, true) \ | 75 V(I32ConvertI64, true) \ |
76 V(I64SConvertF32, false) \ | 76 V(I64SConvertF32, true) \ |
77 V(I64SConvertF64, false) \ | 77 V(I64SConvertF64, true) \ |
78 V(I64UConvertF32, false) \ | 78 V(I64UConvertF32, true) \ |
79 V(I64UConvertF64, false) \ | 79 V(I64UConvertF64, true) \ |
80 V(I64SConvertI32, true) \ | 80 V(I64SConvertI32, true) \ |
81 V(I64UConvertI32, true) \ | 81 V(I64UConvertI32, true) \ |
82 V(F32SConvertI64, true) \ | 82 V(F32SConvertI64, true) \ |
83 V(F32UConvertI64, true) \ | 83 V(F32UConvertI64, true) \ |
84 V(F64SConvertI64, true) \ | 84 V(F64SConvertI64, true) \ |
85 V(F64UConvertI64, true) \ | 85 V(F64UConvertI64, true) \ |
86 V(F64ReinterpretI64, true) \ | 86 V(F64ReinterpretI64, true) \ |
87 V(I64ReinterpretF64, true) \ | 87 V(I64ReinterpretF64, true) \ |
88 V(I64Ror, false) \ | 88 V(I64Ror, false) \ |
89 V(I64Rol, false) | 89 V(I64Rol, false) |
(...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1308 REQUIRE(I64Eq); | 1308 REQUIRE(I64Eq); |
1309 | 1309 |
1310 WasmRunner<int32_t> r(MachineType::Int64()); | 1310 WasmRunner<int32_t> r(MachineType::Int64()); |
1311 BUILD(r, WASM_I64_EQZ(WASM_GET_LOCAL(0))); | 1311 BUILD(r, WASM_I64_EQZ(WASM_GET_LOCAL(0))); |
1312 | 1312 |
1313 FOR_INT64_INPUTS(i) { | 1313 FOR_INT64_INPUTS(i) { |
1314 int32_t result = *i == 0 ? 1 : 0; | 1314 int32_t result = *i == 0 ? 1 : 0; |
1315 CHECK_EQ(result, r.Call(*i)); | 1315 CHECK_EQ(result, r.Call(*i)); |
1316 } | 1316 } |
1317 } | 1317 } |
OLD | NEW |