diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-11-14 18:04:47 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-11-14 18:04:47 +0000 |
commit | 3ca6382120c16e30151e19175d40480ee72de641 (patch) | |
tree | 9c86f69d8ff87fe8689b4c4a99a5b6d1d697e0e0 /test | |
parent | 7af4b9b33a2bc3e95f78d8b5063a77035c86640d (diff) | |
download | external_llvm-3ca6382120c16e30151e19175d40480ee72de641.zip external_llvm-3ca6382120c16e30151e19175d40480ee72de641.tar.gz external_llvm-3ca6382120c16e30151e19175d40480ee72de641.tar.bz2 |
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.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/MC/X86/x86_errors.s b/test/MC/X86/x86_errors.s index f161e06..6e14d62 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 |