aboutsummaryrefslogtreecommitdiff
path: root/test/MC/AsmParser/X86/x86_instruction_errors.s
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2010-09-17 15:48:55 +0000
committerDimitry Andric <dim@FreeBSD.org>2010-09-17 15:48:55 +0000
commitd39c594d39df7f283c2fb8a704a3f31c501180d9 (patch)
tree36453626c792cccd91f783a38a169d610a6b9db9 /test/MC/AsmParser/X86/x86_instruction_errors.s
parent6144c1de6a7674dad94290650e4e14f24d42e421 (diff)
Diffstat (limited to 'test/MC/AsmParser/X86/x86_instruction_errors.s')
-rw-r--r--test/MC/AsmParser/X86/x86_instruction_errors.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MC/AsmParser/X86/x86_instruction_errors.s b/test/MC/AsmParser/X86/x86_instruction_errors.s
new file mode 100644
index 000000000000..183306be2c11
--- /dev/null
+++ b/test/MC/AsmParser/X86/x86_instruction_errors.s
@@ -0,0 +1,5 @@
+// RUN: not llvm-mc -triple x86_64-unknown-unknown %s 2> %t.err
+// RUN: FileCheck < %t.err %s
+
+// CHECK: error: ambiguous instructions require an explicit suffix (could be 'cmpb', 'cmpw', 'cmpl', or 'cmpq')
+cmp $0, 0(%eax)