8250902: Implement MD5 Intrinsics on x86

Reviewed-by: kvn, vdeshpande, ascarpino
This commit is contained in:
Ludovic Henry 2020-08-05 11:32:15 -07:00 committed by Vladimir Kozlov
parent 13946835b5
commit 339016a0f2
53 changed files with 1110 additions and 388 deletions

View file

@ -4301,6 +4301,16 @@ void Assembler::ret(int imm16) {
}
}
void Assembler::roll(Register dst, int imm8) {
assert(isShiftCount(imm8 >> 1), "illegal shift count");
int encode = prefix_and_encode(dst->encoding());
if (imm8 == 1) {
emit_int16((unsigned char)0xD1, (0xC0 | encode));
} else {
emit_int24((unsigned char)0xC1, (0xc0 | encode), imm8);
}
}
void Assembler::sahf() {
#ifdef _LP64
// Not supported in 64bit mode