From a5297bd0d402d521916e597d7e1671c19f00db92 Mon Sep 17 00:00:00 2001 From: Dean Long Date: Mon, 7 Dec 2020 20:10:07 +0000 Subject: [PATCH] 8254939: macOS: unused function 'replicate4_imm' Reviewed-by: redestad, thartmann --- src/hotspot/cpu/x86/x86.ad | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/hotspot/cpu/x86/x86.ad b/src/hotspot/cpu/x86/x86.ad index eff37d445c6..e5923f77219 100644 --- a/src/hotspot/cpu/x86/x86.ad +++ b/src/hotspot/cpu/x86/x86.ad @@ -2371,19 +2371,6 @@ int vec_spill_helper(CodeBuffer *cbuf, bool do_size, bool is_load, return size+offset_size; } -static inline jint replicate4_imm(int con, int width) { - // Load a constant of "width" (in bytes) and replicate it to fill 32bit. - assert(width == 1 || width == 2, "only byte or short types here"); - int bit_width = width * 8; - jint val = con; - val &= (1 << bit_width) - 1; // mask off sign bits - while(bit_width < 32) { - val |= (val << bit_width); - bit_width <<= 1; - } - return val; -} - static inline jlong replicate8_imm(int con, int width) { // Load a constant of "width" (in bytes) and replicate it to fill 64bit. assert(width == 1 || width == 2 || width == 4, "only byte, short or int types here");