aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/X86
diff options
context:
space:
mode:
authorElena Demikhovsky <elena.demikhovsky@intel.com>2013-08-01 13:34:06 +0000
committerElena Demikhovsky <elena.demikhovsky@intel.com>2013-08-01 13:34:06 +0000
commit0780179d532d20b6b01ba0f1434c93f81b7faea8 (patch)
tree1342716ed6c6955d78a406171f0d9b212a0a39e8 /test/MC/X86
parent8f0ad5ae8f2699f6ab13a229941a0b192273cae8 (diff)
downloadexternal_llvm-0780179d532d20b6b01ba0f1434c93f81b7faea8.zip
external_llvm-0780179d532d20b6b01ba0f1434c93f81b7faea8.tar.gz
external_llvm-0780179d532d20b6b01ba0f1434c93f81b7faea8.tar.bz2
EVEX and compressed displacement encoding for AVX512
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187576 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/X86')
-rw-r--r--test/MC/X86/avx512-encodings.s21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/MC/X86/avx512-encodings.s b/test/MC/X86/avx512-encodings.s
new file mode 100644
index 0000000..26a77c1
--- /dev/null
+++ b/test/MC/X86/avx512-encodings.s
@@ -0,0 +1,21 @@
+// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s
+
+// CHECK: vinserti32x4
+// CHECK: encoding: [0x62,0xa3,0x55,0x48,0x38,0xcd,0x01]
+vinserti32x4 $1, %xmm21, %zmm5, %zmm17
+
+// CHECK: vinserti32x4
+// CHECK: encoding: [0x62,0xe3,0x1d,0x40,0x38,0x4f,0x10,0x01]
+vinserti32x4 $1, 256(%rdi), %zmm28, %zmm17
+
+// CHECK: vextracti32x4
+// CHECK: encoding: [0x62,0x33,0x7d,0x48,0x39,0xc9,0x01]
+vextracti32x4 $1, %zmm9, %xmm17
+
+// CHECK: vextracti64x4
+// CHECK: encoding: [0x62,0x33,0xfd,0x48,0x3b,0xc9,0x01]
+vextracti64x4 $1, %zmm9, %ymm17
+
+// CHECK: vextracti64x4
+// CHECK: encoding: [0x62,0x73,0xfd,0x48,0x3b,0x4f,0x10,0x01]
+vextracti64x4 $1, %zmm9, 512(%rdi)