diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-10-03 05:17:48 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-10-03 05:17:48 +0000 |
commit | 279d28265dccc2a7c56f9ea04917c87dc50c1578 (patch) | |
tree | 09d2594b5d113766c8b77161499989059a5fb948 /test/MC | |
parent | dfd1014ec36a9074a408c0cc8a94d3a6cb8c7e81 (diff) | |
download | external_llvm-279d28265dccc2a7c56f9ea04917c87dc50c1578.zip external_llvm-279d28265dccc2a7c56f9ea04917c87dc50c1578.tar.gz external_llvm-279d28265dccc2a7c56f9ea04917c87dc50c1578.tar.bz2 |
Add XOP disassembler support. Fixes PR13933.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/Disassembler/X86/simple-tests.txt | 72 | ||||
-rw-r--r-- | test/MC/X86/avx512-encodings.s | 2 |
2 files changed, 73 insertions, 1 deletions
diff --git a/test/MC/Disassembler/X86/simple-tests.txt b/test/MC/Disassembler/X86/simple-tests.txt index 9934812..7ca0874 100644 --- a/test/MC/Disassembler/X86/simple-tests.txt +++ b/test/MC/Disassembler/X86/simple-tests.txt @@ -770,9 +770,24 @@ # CHECK: vfmaddps %ymm2, %ymm1, %ymm0, %ymm0 0xc4 0xe3 0xfd 0x68 0xc2 0x10 +# CHECK: vpermil2ps $0, %xmm4, %xmm3, %xmm2, %xmm1 +0xc4 0xe3 0x69 0x48 0xcb 0x40 + # CHECK: vpermil2ps $1, 4(%rax), %xmm2, %xmm3, %xmm0 0xc4 0xe3 0xe1 0x48 0x40 0x04 0x21 +# CHECK: vpermil2ps $2, (%rax), %ymm1, %ymm5, %ymm6 +0xc4 0xe3 0xd5 0x48 0x30 0x12 + +# CHECK: vpermil2ps $3, %xmm1, (%rax), %xmm3, %xmm4 +0xc4 0xe3 0x61 0x48 0x20 0x13 + +# CHECK: vpermil2ps $0, %ymm4, %ymm4, %ymm2, %ymm2 +0xc4 0xe3 0x6d 0x48 0xd4 0x40 + +# CHECK: vpermil2pd $1, %ymm1, 4(%rax), %ymm1, %ymm0 +0xc4 0xe3 0x75 0x49 0x40 0x04 0x11 + # CHECK: vgatherdpd %xmm0, (%rdi,%xmm1,2), %xmm2 0xc4 0xe2 0xf9 0x92 0x14 0x4f @@ -844,3 +859,60 @@ # CHECK: xacquire # CHECK-NEXT: xchgl %ebx, (%rax) 0xf2 0x87 0x18 + +# CHECK: bextr $2814, %edi, %eax +0x8f 0xea 0x78 0x10 0xc7 0xfe 0x0a 0x00 0x00 + +# CHECK: blci %rdi, %rax +0x8f 0xe9 0xf8 0x02 0xf7 + +# CHECK: vpcmov %xmm1, %xmm2, %xmm3, %xmm4 +0x8f 0xe8 0x60 0xa2 0xe2 0x10 + +# CHECK: vpcmov (%rax), %xmm2, %xmm3, %xmm4 +0x8f 0xe8 0xe0 0xa2 0x20 0x20 + +# CHECK: vpcmov %xmm1, (%rax), %xmm3, %xmm4 +0x8f 0xe8 0x60 0xa2 0x20 0x10 + +# CHECK: vpcmov %ymm1, %ymm2, %ymm3, %ymm4 +0x8f 0xe8 0x64 0xa2 0xe2 0x10 + +# CHECK: vpcmov (%rax), %ymm2, %ymm3, %ymm4 +0x8f 0xe8 0xe4 0xa2 0x20 0x20 + +# CHECK: vpcmov %ymm1, (%rax), %ymm3, %ymm4 +0x8f 0xe8 0x64 0xa2 0x20 0x10 + +# CHECK: vpcomb $55, %xmm6, %xmm4, %xmm2 +0x8f 0xe8 0x58 0xcc 0xd6 0x37 + +# CHECK: vpcomb $56, 8(%rax), %xmm3, %xmm2 +0x8f 0xe8 0x60 0xcc 0x50 0x08 0x38 + +# CHECK: vpmacsdd %xmm4, %xmm6, %xmm4, %xmm2 +0x8f 0xe8 0x58 0x9e 0xd6 0x40 +# CHECK: vpmacsdd %xmm4, (%rax,%rcx), %xmm4, %xmm3 +0x8f 0xe8 0x58 0x9e 0x1c 0x08 0x40 + +# CHECK: vprotd (%rax), %xmm0, %xmm3 +0x8f 0xe9 0xf8 0x92 0x18 +# CHECK: vprotd %xmm2, (%rax,%rcx), %xmm4 +0x8f 0xe9 0x68 0x92 0x24 0x08 +# CHECK: vprotd %xmm5, %xmm3, %xmm2 +0x8f 0xe9 0x50 0x92 0xd3 +# CHECK: vprotd $43, (%rcx), %xmm6 +0x8f 0xe8 0x78 0xc2 0x31 0x2b +# CHECK: vprotd $44, (%rax,%rcx), %xmm7 +0x8f 0xe8 0x78 0xc2 0x3c 0x08 0x2c +# CHECK: vprotd $45, %xmm4, %xmm4 +0x8f 0xe8 0x78 0xc2 0xe4 0x2d + +# CHECK: vfrczps 4(%rax), %xmm3 +0x8f 0xe9 0x78 0x80 0x58 0x04 +# CHECK: vfrczps %xmm6, %xmm5 +0x8f 0xe9 0x78 0x80 0xee +# CHECK: vfrczps (%rcx), %xmm1 +0x8f 0xe9 0x78 0x80 0x09 +# CHECK: vfrczps %ymm2, %ymm4 +0x8f 0xe9 0x7c 0x80 0xe2 diff --git a/test/MC/X86/avx512-encodings.s b/test/MC/X86/avx512-encodings.s index 09dff8c..38f9190 100644 --- a/test/MC/X86/avx512-encodings.s +++ b/test/MC/X86/avx512-encodings.s @@ -42,4 +42,4 @@ vpbroadcastd %xmm0, %zmm1 {%k1} {z} // CHECK: vmovdqu64 {{.*}} {%k3} // CHECK: encoding: [0x62,0xf1,0xfe,0x4b,0x6f,0xc8] -vmovdqu64 %zmm0, %zmm1 {%k3}
\ No newline at end of file +vmovdqu64 %zmm0, %zmm1 {%k3} |