8280976: Incorrect encoding of avx512 vpsraq instruction with mask and constant shift.

Reviewed-by: neliasso, thartmann
This commit is contained in:
Jatin Bhateja 2022-02-02 07:36:47 +00:00
parent 97af323041
commit 48a32b5f3a

View File

@ -9301,7 +9301,7 @@ void Assembler::evpsraq(XMMRegister dst, KRegister mask, XMMRegister src, int sh
attributes.reset_is_clear_context();
}
int encode = vex_prefix_and_encode(xmm4->encoding(), dst->encoding(), src->encoding(), VEX_SIMD_66, VEX_OPCODE_0F, &attributes);
emit_int24(0x73, (0xC0 | encode), shift & 0xFF);
emit_int24(0x72, (0xC0 | encode), shift & 0xFF);
}
void Assembler::evpsllw(XMMRegister dst, KRegister mask, XMMRegister nds, XMMRegister src, bool merge, int vector_len) {