[llvm] r192341 - Allow non-AVX form of pmovmskb to take a GR64 operand.
Craig Topper
craig.topper at gmail.com
Wed Oct 9 22:33:31 PDT 2013
Author: ctopper
Date: Thu Oct 10 00:33:31 2013
New Revision: 192341
URL: http://llvm.org/viewvc/llvm-project?rev=192341&view=rev
Log:
Allow non-AVX form of pmovmskb to take a GR64 operand.
Modified:
llvm/trunk/lib/Target/X86/X86InstrSSE.td
llvm/trunk/test/MC/X86/x86_64-encoding.s
Modified: llvm/trunk/lib/Target/X86/X86InstrSSE.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrSSE.td?rev=192341&r1=192340&r2=192341&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrSSE.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrSSE.td Thu Oct 10 00:33:31 2013
@@ -4314,6 +4314,8 @@ def PMOVMSKBrr : PDI<0xD7, MRMSrcReg, (o
"pmovmskb\t{$src, $dst|$dst, $src}",
[(set GR32:$dst, (int_x86_sse2_pmovmskb_128 VR128:$src))],
IIC_SSE_MOVMSK>;
+def PMOVMSKBr64r : PDI<0xD7, MRMSrcReg, (outs GR64:$dst), (ins VR128:$src),
+ "pmovmskb\t{$src, $dst|$dst, $src}", [], IIC_SSE_MOVMSK>;
} // ExeDomain = SSEPackedInt
Modified: llvm/trunk/test/MC/X86/x86_64-encoding.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/X86/x86_64-encoding.s?rev=192341&r1=192340&r2=192341&view=diff
==============================================================================
--- llvm/trunk/test/MC/X86/x86_64-encoding.s (original)
+++ llvm/trunk/test/MC/X86/x86_64-encoding.s Thu Oct 10 00:33:31 2013
@@ -231,3 +231,7 @@ sha256msg2 (%rax), %xmm2
// CHECK: filds (%rdi)
// CHECK: encoding: [0xdf,0x07]
filds (%rdi)
+
+// CHECK: pmovmskb %xmm5, %rcx
+// CHECK: encoding: [0x66,0x0f,0xd7,0xcd]
+ pmovmskb %xmm5,%rcx
More information about the llvm-commits
mailing list