summaryrefslogtreecommitdiff
path: root/test/MC/AsmParser
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-08-12 00:55:42 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-08-12 00:55:42 +0000
commit09062b1672d33c40c38de3ff3163e0d53ebe165d (patch)
tree70302dfa20f24dc6259509e8b7de315ff15a8b9a /test/MC/AsmParser
parentf1e29d4c21d15f9e1e3a64f3b92b1aa9908e4f63 (diff)
downloadllvm-09062b1672d33c40c38de3ff3163e0d53ebe165d.tar.gz
llvm-09062b1672d33c40c38de3ff3163e0d53ebe165d.tar.bz2
llvm-09062b1672d33c40c38de3ff3163e0d53ebe165d.tar.xz
MC/X86/AsmParser: Give an explicit error message when we reject an instruction
because it could have an ambiguous suffix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/AsmParser')
-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 0000000000..183306be2c
--- /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)