summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-11-14 18:04:47 +0000
committerJim Grosbach <grosbach@apple.com>2012-11-14 18:04:47 +0000
commit3ca6382120c16e30151e19175d40480ee72de641 (patch)
tree9c86f69d8ff87fe8689b4c4a99a5b6d1d697e0e0 /test
parent7af4b9b33a2bc3e95f78d8b5063a77035c86640d (diff)
downloadllvm-3ca6382120c16e30151e19175d40480ee72de641.tar.gz
llvm-3ca6382120c16e30151e19175d40480ee72de641.tar.bz2
llvm-3ca6382120c16e30151e19175d40480ee72de641.tar.xz
X86: Better diagnostics for 32-bit vs. 64-bit mode mismatches.
When an instruction as written requires 32-bit mode and we're assembling in 64-bit mode, or vice-versa, issue a more specific diagnostic about what's wrong. rdar://12700702 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167937 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/X86/x86_errors.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/MC/X86/x86_errors.s b/test/MC/X86/x86_errors.s
index f161e06cb5..6e14d62fda 100644
--- a/test/MC/X86/x86_errors.s
+++ b/test/MC/X86/x86_errors.s
@@ -18,7 +18,7 @@ addl $0, 0(%rax)
movl 0(%rax), 0(%edx) // error: invalid operand for instruction
-// 32: error: instruction requires a CPU feature not currently enabled
+// 32: error: instruction requires: 64-bit mode
sysexitq
// rdar://10710167