Commit e358d29e authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

Fix disasm of palignr and pblendw

It was using "data", should be using "current".

Was:

0x16e1493c294c   90c  660f3a0fe905   palignr xmm5,[rdi],0x1
0x16e1493c2952   912  660f3a0f6a04   palignr xmm5,[rdi],0x0

Now:

0x2faab74294c   90c  660f3a0fe905   palignr xmm5,xmm1,0x1
0x2faab742952   912  660f3a0f6a0405 palignr xmm5,[rdx+0x4],0x1

Change-Id: I061096889bb26982b27656bd27ac3c9fb6402368
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1869079Reviewed-by: 's avatarDeepti Gandluri <gdeepti@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64391}
parent a972a8df
......@@ -1724,13 +1724,13 @@ int DisassemblerX64::TwoByteOpcodeInstruction(byte* data) {
} else if (third_byte == 0x0E) {
get_modrm(*current, &mod, &regop, &rm);
AppendToBuffer("pblendw %s,", NameOfXMMRegister(regop));
current += PrintRightXMMOperand(data);
current += PrintRightXMMOperand(current);
AppendToBuffer(",0x%x", (*current) & 3);
current += 1;
} else if (third_byte == 0x0F) {
get_modrm(*data, &mod, &regop, &rm);
get_modrm(*current, &mod, &regop, &rm);
AppendToBuffer("palignr %s,", NameOfXMMRegister(regop));
current += PrintRightXMMOperand(data);
current += PrintRightXMMOperand(current);
AppendToBuffer(",0x%x", (*current) & 3);
current += 1;
} else if (third_byte == 0x14) {
......
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