[llvm-commits] [llvm] r139690 - in /llvm/trunk: lib/Target/X86/Disassembler/X86Disassembler.cpp test/MC/Disassembler/X86/simple-tests.txt
Craig Topper
craig.topper at gmail.com
Tue Sep 13 22:55:28 PDT 2011
Author: ctopper
Date: Wed Sep 14 00:55:28 2011
New Revision: 139690
URL: http://llvm.org/viewvc/llvm-project?rev=139690&view=rev
Log:
Make disassembling of VBLEND* print immediate as a XMM/YMM register name. Fixes PR10917.
Modified:
llvm/trunk/lib/Target/X86/Disassembler/X86Disassembler.cpp
llvm/trunk/test/MC/Disassembler/X86/simple-tests.txt
Modified: llvm/trunk/lib/Target/X86/Disassembler/X86Disassembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/Disassembler/X86Disassembler.cpp?rev=139690&r1=139689&r2=139690&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/Disassembler/X86Disassembler.cpp (original)
+++ llvm/trunk/lib/Target/X86/Disassembler/X86Disassembler.cpp Wed Sep 14 00:55:28 2011
@@ -221,6 +221,12 @@
}
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)
Modified: llvm/trunk/test/MC/Disassembler/X86/simple-tests.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Disassembler/X86/simple-tests.txt?rev=139690&r1=139689&r2=139690&view=diff
==============================================================================
--- llvm/trunk/test/MC/Disassembler/X86/simple-tests.txt (original)
+++ llvm/trunk/test/MC/Disassembler/X86/simple-tests.txt Wed Sep 14 00:55:28 2011
@@ -269,3 +269,6 @@
# CHECK: vmovdqu %ymm0, %ymm1
0xc5 0xfe 0x7f 0xc1
+
+# CHECK: vblendvps %xmm4, %xmm1, %xmm2, %xmm3
+0xc4 0xe3 0x69 0x4a 0xd9 0x41
More information about the llvm-commits
mailing list