[llvm] e951442 - [X86][AVX] Add 'OK' tests cases for PR48877

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 1 10:19:47 PST 2021


Author: Simon Pilgrim
Date: 2021-02-01T18:17:41Z
New Revision: e9514429a02b1e4f8b9d54b28a934bfa9bd246ec

URL: https://github.com/llvm/llvm-project/commit/e9514429a02b1e4f8b9d54b28a934bfa9bd246ec
DIFF: https://github.com/llvm/llvm-project/commit/e9514429a02b1e4f8b9d54b28a934bfa9bd246ec.diff

LOG: [X86][AVX] Add 'OK' tests cases for PR48877

Added: 
    llvm/test/MC/Disassembler/X86/x86-64-avx.txt
    llvm/test/MC/Disassembler/X86/x86-64-avx2.txt

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/Disassembler/X86/x86-64-avx.txt b/llvm/test/MC/Disassembler/X86/x86-64-avx.txt
new file mode 100644
index 000000000000..9ebb5335a22d
--- /dev/null
+++ b/llvm/test/MC/Disassembler/X86/x86-64-avx.txt
@@ -0,0 +1,19 @@
+# RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 | FileCheck %s
+
+# CHECK: vpackusdw (%rax), %xmm2, %xmm1
+0xc4 0xe2 0x69 0x2b 0x08
+
+# CHECK: vphsubd %xmm3, %xmm2, %xmm11
+0xc4 0x62 0x69 0x06 0xdb
+
+# CHECK: vpcmpestri $100, %xmm3, %xmm11
+0xc4 0x63 0x79 0x61 0xdb 0x64
+
+# CHECK: vpcmpestrm $100, %xmm3, %xmm11
+0xc4 0x63 0x79 0x60 0xdb 0x64
+
+# CHECK: vpcmpistri $100, %xmm3, %xmm11
+0xc4 0x63 0x79 0x63 0xdb 0x64
+
+# CHECK: vpcmpistrm $100, %xmm3, %xmm11
+0xc4 0x63 0x79 0x62 0xdb 0x64

diff  --git a/llvm/test/MC/Disassembler/X86/x86-64-avx2.txt b/llvm/test/MC/Disassembler/X86/x86-64-avx2.txt
new file mode 100644
index 000000000000..a6a87f100633
--- /dev/null
+++ b/llvm/test/MC/Disassembler/X86/x86-64-avx2.txt
@@ -0,0 +1,7 @@
+# RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 | FileCheck %s
+
+# CHECK: vpackusdw %ymm0, %ymm2, %ymm1
+0xc4 0xe2 0x6d 0x2b 0xc8
+
+# CHECK: vphsubd %ymm0, %ymm2, %ymm1
+0xc4 0xe2 0x6d 0x06 0xc8


        


More information about the llvm-commits mailing list