|
1 | 1 | /* |
2 | | - * Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2005, 2024, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * Copyright (c) 2014, Red Hat Inc. All rights reserved. |
4 | 4 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 | 5 | * |
@@ -831,18 +831,12 @@ void LIRGenerator::do_LibmIntrinsic(Intrinsic* x) { |
831 | 831 | } |
832 | 832 | break; |
833 | 833 | case vmIntrinsics::_dlog: |
834 | | - if (StubRoutines::dlog() != nullptr) { |
835 | | - __ call_runtime_leaf(StubRoutines::dlog(), getThreadTemp(), result_reg, cc->args()); |
836 | | - } else { |
837 | | - __ call_runtime_leaf(CAST_FROM_FN_PTR(address, SharedRuntime::dlog), getThreadTemp(), result_reg, cc->args()); |
838 | | - } |
| 834 | + // Math.log intrinsic is not implemented on AArch64 (see JDK-8210858), |
| 835 | + // but we can still call the shared runtime. |
| 836 | + __ call_runtime_leaf(CAST_FROM_FN_PTR(address, SharedRuntime::dlog), getThreadTemp(), result_reg, cc->args()); |
839 | 837 | break; |
840 | 838 | case vmIntrinsics::_dlog10: |
841 | | - if (StubRoutines::dlog10() != nullptr) { |
842 | | - __ call_runtime_leaf(StubRoutines::dlog10(), getThreadTemp(), result_reg, cc->args()); |
843 | | - } else { |
844 | | - __ call_runtime_leaf(CAST_FROM_FN_PTR(address, SharedRuntime::dlog10), getThreadTemp(), result_reg, cc->args()); |
845 | | - } |
| 839 | + __ call_runtime_leaf(CAST_FROM_FN_PTR(address, SharedRuntime::dlog10), getThreadTemp(), result_reg, cc->args()); |
846 | 840 | break; |
847 | 841 | case vmIntrinsics::_dpow: |
848 | 842 | if (StubRoutines::dpow() != nullptr) { |
|
0 commit comments