From 29480fd798dc6452948f63825ff41c66f09c2493 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 11 Oct 2011 04:34:23 +0000 Subject: Fix disassembling of popcntw. Also remove some code that says it accounts for 64BIT_REXW_XD not existing, but it does exist. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141642 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/Disassembler/X86/simple-tests.txt | 9 +++++++++ test/MC/Disassembler/X86/x86-32.txt | 6 ++++++ 2 files changed, 15 insertions(+) (limited to 'test/MC') diff --git a/test/MC/Disassembler/X86/simple-tests.txt b/test/MC/Disassembler/X86/simple-tests.txt index 0b0085842a..d1d60ef6d0 100644 --- a/test/MC/Disassembler/X86/simple-tests.txt +++ b/test/MC/Disassembler/X86/simple-tests.txt @@ -479,3 +479,12 @@ # CHECK: vcvtps2ph $0, %ymm0, (%rax) 0xc4 0xe3 0x7d 0x1d 0x00 0x00 + +# CHECK: popcntl %eax, %eax +0xf3 0x0f 0xb8 0xc0 + +# CHECK: popcntw %ax, %ax +0x66 0xf3 0x0f 0xb8 0xc0 + +# CHECK: popcntq %rax, %rax +0xf3 0x48 0x0f 0xb8 0xc0 diff --git a/test/MC/Disassembler/X86/x86-32.txt b/test/MC/Disassembler/X86/x86-32.txt index d0b24d2ebe..f8944da9ee 100644 --- a/test/MC/Disassembler/X86/x86-32.txt +++ b/test/MC/Disassembler/X86/x86-32.txt @@ -465,3 +465,9 @@ # CHECK: vcvtps2ph $0, %ymm0, (%eax) 0xc4 0xe3 0x7d 0x1d 0x00 0x00 + +# CHECK: popcntl %eax, %eax +0xf3 0x0f 0xb8 0xc0 + +# CHECK: popcntw %ax, %ax +0x66 0xf3 0x0f 0xb8 0xc0 -- cgit v1.2.3