Commit 6c54a6a6 authored by Deepti Gandluri's avatar Deepti Gandluri Committed by Commit Bot

Remove unused pshufw instruction

Bug: v8:9810
Change-Id: I5eb359f9bc04be4c0855a5161b7c525c803f679f
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1873187Reviewed-by: 's avatarZhi An Ng <zhin@chromium.org>
Commit-Queue: Deepti Gandluri <gdeepti@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64442}
parent 08b26f53
......@@ -1023,24 +1023,6 @@ void Assembler::bsfq(Register dst, Operand src) {
emit_operand(dst, src);
}
void Assembler::pshufw(XMMRegister dst, XMMRegister src, uint8_t shuffle) {
EnsureSpace ensure_space(this);
emit_optional_rex_32(dst, src);
emit(0x0F);
emit(0x70);
emit_sse_operand(dst, src);
emit(shuffle);
}
void Assembler::pshufw(XMMRegister dst, Operand src, uint8_t shuffle) {
EnsureSpace ensure_space(this);
emit_optional_rex_32(dst, src);
emit(0x0F);
emit(0x70);
emit_operand(dst.code(), src);
emit(shuffle);
}
void Assembler::pblendw(XMMRegister dst, Operand src, uint8_t mask) {
sse4_instr(dst, src, 0x66, 0x0F, 0x3A, 0x0E);
emit(mask);
......
......@@ -696,8 +696,6 @@ class V8_EXPORT_PRIVATE Assembler : public AssemblerBase {
void ud2();
void setcc(Condition cc, Register reg);
void pshufw(XMMRegister dst, XMMRegister src, uint8_t shuffle);
void pshufw(XMMRegister dst, Operand src, uint8_t shuffle);
void pblendw(XMMRegister dst, Operand src, uint8_t mask);
void pblendw(XMMRegister dst, XMMRegister src, uint8_t mask);
void palignr(XMMRegister dst, Operand src, uint8_t mask);
......
......@@ -2293,13 +2293,6 @@ int DisassemblerX64::TwoByteOpcodeInstruction(byte* data) {
get_modrm(*current, &mod, &regop, &rm);
AppendToBuffer("movmskps %s,", NameOfCPURegister(regop));
current += PrintRightXMMOperand(current);
} else if (opcode == 0x70) {
int mod, regop, rm;
get_modrm(*current, &mod, &regop, &rm);
AppendToBuffer("pshufw %s, ", NameOfXMMRegister(regop));
current += PrintRightXMMOperand(current);
AppendToBuffer(", %d", (*current) & 3);
current += 1;
} else if ((opcode & 0xF0) == 0x80) {
// Jcc: Conditional jump (branch).
current = data + JumpConditional(data);
......
......@@ -268,7 +268,6 @@ TEST(DisasmX64) {
__ xorq(rdx, Immediate(12345));
__ xorq(rdx, Operand(rbx, rcx, times_8, 10000));
__ pshufw(xmm5, xmm1, 3);
__ hlt();
__ int3();
__ ret(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment