AVX-512: asm parser errors check
authorElena Demikhovsky <elena.demikhovsky@intel.com>
Tue, 12 May 2015 09:47:23 +0000 (09:47 +0000)
committerElena Demikhovsky <elena.demikhovsky@intel.com>
Tue, 12 May 2015 09:47:23 +0000 (09:47 +0000)
I reverted the error check that was removed in 236416.
I put the it in a separate file.

llvm-svn: 237107

llvm/test/MC/X86/avx512-err.s [new file with mode: 0644]

diff --git a/llvm/test/MC/X86/avx512-err.s b/llvm/test/MC/X86/avx512-err.s
new file mode 100644 (file)
index 0000000..bfe6e39
--- /dev/null
@@ -0,0 +1,6 @@
+// RUN: not llvm-mc -triple x86_64-unknown-unknown -mcpu=knl -mattr=+avx512dq --show-encoding %s 2> %t.err
+// RUN: FileCheck --check-prefix=ERR < %t.err %s
+
+// ERR: invalid operand for instruction
+vpcmpd $1, %zmm24, %zmm7, %k5{%k0}
+