From 8276a419585b9f06c6e9b5fc5813aecc434e00bf Mon Sep 17 00:00:00 2001 From: hanklo6 Date: Mon, 21 Oct 2024 21:16:26 +0000 Subject: [PATCH] 8342715: x86 unused orw instruction encoding could be removed Reviewed-by: sviswanathan, jbhateja, kvn --- src/hotspot/cpu/x86/assembler_x86.cpp | 5 ----- src/hotspot/cpu/x86/assembler_x86.hpp | 1 - 2 files changed, 6 deletions(-) diff --git a/src/hotspot/cpu/x86/assembler_x86.cpp b/src/hotspot/cpu/x86/assembler_x86.cpp index 678f7426321..0b021bbbf5e 100644 --- a/src/hotspot/cpu/x86/assembler_x86.cpp +++ b/src/hotspot/cpu/x86/assembler_x86.cpp @@ -4439,11 +4439,6 @@ void Assembler::enotl(Register dst, Register src) { emit_int16((unsigned char)0xF7, (0xD0 | encode)); } -void Assembler::orw(Register dst, Register src) { - (void)prefix_and_encode(dst->encoding(), src->encoding()); - emit_arith(0x0B, 0xC0, dst, src); -} - void Assembler::eorw(Register dst, Register src1, Register src2, bool no_flags) { InstructionAttr attributes(AVX_128bit, /* vex_w */ false, /* legacy_mode */ false, /* no_mask_reg */ true, /* uses_vl */ false); (void) evex_prefix_and_encode_ndd(src1->encoding(), dst->encoding(), src2->encoding(), VEX_SIMD_NONE, VEX_OPCODE_0F_3C, &attributes, no_flags); diff --git a/src/hotspot/cpu/x86/assembler_x86.hpp b/src/hotspot/cpu/x86/assembler_x86.hpp index 94c0535b025..36dfafc8b5d 100644 --- a/src/hotspot/cpu/x86/assembler_x86.hpp +++ b/src/hotspot/cpu/x86/assembler_x86.hpp @@ -1901,7 +1901,6 @@ private: #endif void btq(Register dst, Register src); - void orw(Register dst, Register src); void eorw(Register dst, Register src1, Register src2, bool no_flags); void orl(Address dst, int32_t imm32);