OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. Use of this | 1 // Copyright 2014 the V8 project authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #include "src/wasm/wasm-external-refs.h" | 5 #include "src/wasm/wasm-external-refs.h" |
6 #include "test/cctest/cctest.h" | 6 #include "test/cctest/cctest.h" |
7 #include "test/cctest/compiler/codegen-tester.h" | 7 #include "test/cctest/compiler/codegen-tester.h" |
8 #include "test/cctest/compiler/value-helper.h" | 8 #include "test/cctest/compiler/value-helper.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 BufferedRawMachineAssemblerTester<uint32_t> m; | 233 BufferedRawMachineAssemblerTester<uint32_t> m; |
234 ExternalReference ref = ExternalReference::wasm_word32_popcnt(m.isolate()); | 234 ExternalReference ref = ExternalReference::wasm_word32_popcnt(m.isolate()); |
235 TestExternalReference(&m, ref, wasm::word32_popcnt_wrapper, uint32_t(1774)); | 235 TestExternalReference(&m, ref, wasm::word32_popcnt_wrapper, uint32_t(1774)); |
236 } | 236 } |
237 | 237 |
238 TEST(RunCallWord64Popcnt) { | 238 TEST(RunCallWord64Popcnt) { |
239 BufferedRawMachineAssemblerTester<uint32_t> m; | 239 BufferedRawMachineAssemblerTester<uint32_t> m; |
240 ExternalReference ref = ExternalReference::wasm_word64_popcnt(m.isolate()); | 240 ExternalReference ref = ExternalReference::wasm_word64_popcnt(m.isolate()); |
241 TestExternalReference(&m, ref, wasm::word64_popcnt_wrapper, uint64_t(1774)); | 241 TestExternalReference(&m, ref, wasm::word64_popcnt_wrapper, uint64_t(1774)); |
242 } | 242 } |
| 243 |
| 244 TEST(RunCallFloat64Pow) { |
| 245 BufferedRawMachineAssemblerTester<int32_t> m; |
| 246 ExternalReference ref = ExternalReference::wasm_float64_pow(m.isolate()); |
| 247 TestExternalReference(&m, ref, wasm::float64_pow_wrapper, 1.5, 1.5); |
| 248 } |
243 } // namespace compiler | 249 } // namespace compiler |
244 } // namespace internal | 250 } // namespace internal |
245 } // namespace v8 | 251 } // namespace v8 |
OLD | NEW |