Skip to content
Permalink
Browse files
8266267: Remove unnecessary jumps in Intel Math Library StubRoutines
Reviewed-by: thartmann, neliasso, kvn
  • Loading branch information
DamonFool committed Apr 30, 2021
1 parent 2c381e0 commit 51b218842f001f1c4fd5ca7a02a2ba21e9e8a82c
Showing with 2 additions and 5 deletions.
  1. +1 −2 src/hotspot/cpu/x86/macroAssembler_x86_exp.cpp
  2. +1 −2 src/hotspot/cpu/x86/macroAssembler_x86_log.cpp
  3. +0 −1 src/hotspot/cpu/x86/macroAssembler_x86_pow.cpp
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2016, Intel Corporation.
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
* Intel Math Library (LIBM) Source Code
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -197,7 +198,6 @@ void MacroAssembler::fast_exp(XMMRegister xmm0, XMMRegister xmm1, XMMRegister xm
Label L_2TAG_PACKET_12_0_2, B1_3, B1_5, start;

assert_different_registers(tmp, eax, ecx, edx);
jmp(start);
address cv = (address)_cv;
address Shifter = (address)_shifter;
address mmask = (address)_mmask;
@@ -486,7 +486,6 @@ void MacroAssembler::fast_exp(XMMRegister xmm0, XMMRegister xmm1, XMMRegister xm
Label L_2TAG_PACKET_12_0_2, start;

assert_different_registers(tmp, eax, ecx, edx);
jmp(start);
address static_const_table = (address)_static_const_table;

bind(start);
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2016, Intel Corporation.
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
* Intel Math Library (LIBM) Source Code
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -189,7 +190,6 @@ void MacroAssembler::fast_log(XMMRegister xmm0, XMMRegister xmm1, XMMRegister xm
Label B1_3, B1_5, start;

assert_different_registers(tmp1, tmp2, eax, ecx, edx);
jmp(start);
address L_tbl = (address)_L_tbl;
address log2 = (address)_log2;
address coeff = (address)_coeff;
@@ -485,7 +485,6 @@ void MacroAssembler::fast_log(XMMRegister xmm0, XMMRegister xmm1, XMMRegister xm
Label L_2TAG_PACKET_10_0_2, start;

assert_different_registers(tmp, eax, ecx, edx);
jmp(start);
address static_const_table = (address)_static_const_table_log;

bind(start);
@@ -803,7 +803,6 @@ void MacroAssembler::fast_pow(XMMRegister xmm0, XMMRegister xmm1, XMMRegister xm
Label L_POW;

assert_different_registers(tmp1, tmp2, eax, ecx, edx);
jmp(start);
address HIGHSIGMASK = (address)_HIGHSIGMASK;
address LOG2_E = (address)_LOG2_E;
address coeff = (address)_coeff_pow;

1 comment on commit 51b2188

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 51b2188 Apr 30, 2021

Please sign in to comment.