summaryrefslogtreecommitdiff
path: root/test/MC/X86/x86_errors.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/X86/x86_errors.s')
-rw-r--r--test/MC/X86/x86_errors.s16
1 files changed, 14 insertions, 2 deletions
diff --git a/test/MC/X86/x86_errors.s b/test/MC/X86/x86_errors.s
index 183306be2c116..e0a2c676d3df0 100644
--- a/test/MC/X86/x86_errors.s
+++ b/test/MC/X86/x86_errors.s
@@ -1,5 +1,17 @@
// RUN: not llvm-mc -triple x86_64-unknown-unknown %s 2> %t.err
-// RUN: FileCheck < %t.err %s
+// RUN: FileCheck --check-prefix=64 < %t.err %s
-// CHECK: error: ambiguous instructions require an explicit suffix (could be 'cmpb', 'cmpw', 'cmpl', or 'cmpq')
+// RUN: not llvm-mc -triple i386-unknown-unknown %s 2> %t.err
+// RUN: FileCheck --check-prefix=32 < %t.err %s
+// rdar://8204588
+
+// 64: error: ambiguous instructions require an explicit suffix (could be 'cmpb', 'cmpw', 'cmpl', or 'cmpq')
cmp $0, 0(%eax)
+
+// 32: error: register %rax is only available in 64-bit mode
+addl $0, 0(%rax)
+
+// 32: test.s:8:2: error: invalid instruction mnemonic 'movi'
+
+# 8 "test.s"
+ movi $8,%eax