From 15de63cfdedc9a449217c841f8e084387b2159c8 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 10 Oct 2013 05:33:31 +0000 Subject: [PATCH] Allow non-AVX form of pmovmskb to take a GR64 operand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192341 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86InstrSSE.td | 2 ++ test/MC/X86/x86_64-encoding.s | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/lib/Target/X86/X86InstrSSE.td b/lib/Target/X86/X86InstrSSE.td index 84d6be00b86..1810e74cb2b 100644 --- a/lib/Target/X86/X86InstrSSE.td +++ b/lib/Target/X86/X86InstrSSE.td @@ -4314,6 +4314,8 @@ def PMOVMSKBrr : PDI<0xD7, MRMSrcReg, (outs GR32:$dst), (ins VR128:$src), "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 diff --git a/test/MC/X86/x86_64-encoding.s b/test/MC/X86/x86_64-encoding.s index f1a86c9d4bf..5a2e99b9eb6 100644 --- a/test/MC/X86/x86_64-encoding.s +++ b/test/MC/X86/x86_64-encoding.s @@ -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