Skip to content

Commit 51b2188

Browse files
committed
8266267: Remove unnecessary jumps in Intel Math Library StubRoutines
Reviewed-by: thartmann, neliasso, kvn
1 parent 2c381e0 commit 51b2188

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/hotspot/cpu/x86/macroAssembler_x86_exp.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Copyright (c) 2016, Intel Corporation.
3+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
34
* Intel Math Library (LIBM) Source Code
45
*
56
* 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
197198
Label L_2TAG_PACKET_12_0_2, B1_3, B1_5, start;
198199

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

488488
assert_different_registers(tmp, eax, ecx, edx);
489-
jmp(start);
490489
address static_const_table = (address)_static_const_table;
491490

492491
bind(start);

src/hotspot/cpu/x86/macroAssembler_x86_log.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Copyright (c) 2016, Intel Corporation.
3+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
34
* Intel Math Library (LIBM) Source Code
45
*
56
* 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
189190
Label B1_3, B1_5, start;
190191

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

487487
assert_different_registers(tmp, eax, ecx, edx);
488-
jmp(start);
489488
address static_const_table = (address)_static_const_table_log;
490489

491490
bind(start);

src/hotspot/cpu/x86/macroAssembler_x86_pow.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,6 @@ void MacroAssembler::fast_pow(XMMRegister xmm0, XMMRegister xmm1, XMMRegister xm
803803
Label L_POW;
804804

805805
assert_different_registers(tmp1, tmp2, eax, ecx, edx);
806-
jmp(start);
807806
address HIGHSIGMASK = (address)_HIGHSIGMASK;
808807
address LOG2_E = (address)_LOG2_E;
809808
address coeff = (address)_coeff_pow;

0 commit comments

Comments
 (0)