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

Side by Side Diff: test/cctest/compiler/test-run-calls-to-external-references.cc

Issue 2166793002: [wasm] Use a C wrapper function to calculate F64Pow. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 | « src/wasm/wasm-external-refs.cc ('k') | test/mjsunit/mjsunit.status » ('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 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
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
OLDNEW
« no previous file with comments | « src/wasm/wasm-external-refs.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698