mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 15:39:06 +00:00
Make disassembling of VBLEND* print immediate as a XMM/YMM register name. Fixes PR10917.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139690 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6a9795a457
commit
3bb43a829e
@ -221,6 +221,12 @@ static void translateImmediate(MCInst &mcInst, uint64_t immediate,
|
||||
}
|
||||
|
||||
switch (type) {
|
||||
case TYPE_XMM128:
|
||||
mcInst.addOperand(MCOperand::CreateReg(X86::XMM0 + (immediate >> 4)));
|
||||
return;
|
||||
case TYPE_XMM256:
|
||||
mcInst.addOperand(MCOperand::CreateReg(X86::YMM0 + (immediate >> 4)));
|
||||
return;
|
||||
case TYPE_MOFFS8:
|
||||
case TYPE_REL8:
|
||||
if(immediate & 0x80)
|
||||
|
@ -269,3 +269,6 @@
|
||||
|
||||
# CHECK: vmovdqu %ymm0, %ymm1
|
||||
0xc5 0xfe 0x7f 0xc1
|
||||
|
||||
# CHECK: vblendvps %xmm4, %xmm1, %xmm2, %xmm3
|
||||
0xc4 0xe3 0x69 0x4a 0xd9 0x41
|
||||
|
Loading…
Reference in New Issue
Block a user