[llvm] r261983 - [X86] Add test cases for r261977 and fix a grammatical error.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 25 22:50:25 PST 2016
Author: ctopper
Date: Fri Feb 26 00:50:24 2016
New Revision: 261983
URL: http://llvm.org/viewvc/llvm-project?rev=261983&view=rev
Log:
[X86] Add test cases for r261977 and fix a grammatical error.
Modified:
llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/trunk/test/MC/X86/x86_errors.s
Modified: llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp?rev=261983&r1=261982&r2=261983&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Fri Feb 26 00:50:24 2016
@@ -916,7 +916,7 @@ bool X86AsmParser::ParseRegister(unsigne
} else if (!getSTI().getFeatureBits()[X86::FeatureAVX512]) {
if (X86II::is32ExtendedReg(RegNo))
return Error(StartLoc, "register %"
- + Tok.getString() + " is only available in with AVX512",
+ + Tok.getString() + " is only available with AVX512",
SMRange(StartLoc, EndLoc));
}
Modified: llvm/trunk/test/MC/X86/x86_errors.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/X86/x86_errors.s?rev=261983&r1=261982&r2=261983&view=diff
==============================================================================
--- llvm/trunk/test/MC/X86/x86_errors.s (original)
+++ llvm/trunk/test/MC/X86/x86_errors.s Fri Feb 26 00:50:24 2016
@@ -11,6 +11,10 @@ cmp $0, 0(%eax)
// 32: error: register %rax is only available in 64-bit mode
addl $0, 0(%rax)
+// 32: error: register %xmm16 is only available in 64-bit mode
+// 64: error: register %xmm16 is only available with AVX512
+vaddps %xmm16, %xmm0, %xmm0
+
// 32: test.s:8:2: error: invalid instruction mnemonic 'movi'
# 8 "test.s"
More information about the llvm-commits
mailing list