8339698: x86 unused andw/orw/xorw/addw encoding could be removed
Reviewed-by: kvn, jbhateja, qamai
This commit is contained in:
parent
64a79d8986
commit
be0dca046a
src/hotspot/cpu/x86
@ -1405,12 +1405,6 @@ void Assembler::addb(Register dst, int imm8) {
|
||||
emit_arith_b(0x80, 0xC0, dst, imm8);
|
||||
}
|
||||
|
||||
void Assembler::addw(Register dst, Register src) {
|
||||
emit_int8(0x66);
|
||||
(void)prefix_and_encode(dst->encoding(), src->encoding());
|
||||
emit_arith(0x03, 0xC0, dst, src);
|
||||
}
|
||||
|
||||
void Assembler::addw(Address dst, int imm16) {
|
||||
InstructionMark im(this);
|
||||
emit_int8(0x66);
|
||||
@ -1632,11 +1626,6 @@ void Assembler::andb(Address dst, Register src) {
|
||||
emit_operand(src, dst, 0);
|
||||
}
|
||||
|
||||
void Assembler::andw(Register dst, Register src) {
|
||||
(void)prefix_and_encode(dst->encoding(), src->encoding());
|
||||
emit_arith(0x23, 0xC0, dst, src);
|
||||
}
|
||||
|
||||
void Assembler::andl(Address dst, int32_t imm32) {
|
||||
InstructionMark im(this);
|
||||
prefix(dst);
|
||||
@ -4230,11 +4219,6 @@ void Assembler::notl(Register dst) {
|
||||
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::orl(Address dst, int32_t imm32) {
|
||||
InstructionMark im(this);
|
||||
prefix(dst);
|
||||
@ -6803,11 +6787,6 @@ void Assembler::xorb(Address dst, Register src) {
|
||||
emit_operand(src, dst, 0);
|
||||
}
|
||||
|
||||
void Assembler::xorw(Register dst, Register src) {
|
||||
(void)prefix_and_encode(dst->encoding(), src->encoding());
|
||||
emit_arith(0x33, 0xC0, dst, src);
|
||||
}
|
||||
|
||||
void Assembler::xorw(Register dst, Address src) {
|
||||
InstructionMark im(this);
|
||||
emit_int8(0x66);
|
||||
|
@ -1068,7 +1068,6 @@ private:
|
||||
void addb(Address dst, int imm8);
|
||||
void addb(Address dst, Register src);
|
||||
void addb(Register dst, int imm8);
|
||||
void addw(Register dst, Register src);
|
||||
void addw(Address dst, int imm16);
|
||||
void addw(Address dst, Register src);
|
||||
|
||||
@ -1120,7 +1119,6 @@ private:
|
||||
void vaesdec(XMMRegister dst, XMMRegister nds, XMMRegister src, int vector_len);
|
||||
void vaesdeclast(XMMRegister dst, XMMRegister nds, XMMRegister src, int vector_len);
|
||||
|
||||
void andw(Register dst, Register src);
|
||||
void andb(Address dst, Register src);
|
||||
|
||||
void andl(Address dst, int32_t imm32);
|
||||
@ -1824,8 +1822,6 @@ private:
|
||||
#endif
|
||||
void btq(Register dst, Register src);
|
||||
|
||||
void orw(Register dst, Register src);
|
||||
|
||||
void orl(Address dst, int32_t imm32);
|
||||
void orl(Register dst, int32_t imm32);
|
||||
void orl(Register dst, Address src);
|
||||
@ -2342,7 +2338,6 @@ private:
|
||||
|
||||
void xorb(Address dst, Register src);
|
||||
void xorb(Register dst, Address src);
|
||||
void xorw(Register dst, Register src);
|
||||
void xorw(Register dst, Address src);
|
||||
|
||||
void xorq(Register dst, Address src);
|
||||
|
Loading…
x
Reference in New Issue
Block a user