forked from OSchip/llvm-project
[X86] Include XMM/YMM/ZMM16-23 in X86II::isX86_64ExtendedReg. This feels more consistent with its name and simplifies assembler code.
llvm-svn: 279922
This commit is contained in:
parent
06c60c067f
commit
6acca80e17
|
@ -904,8 +904,7 @@ bool X86AsmParser::ParseRegister(unsigned &RegNo,
|
|||
if (RegNo == X86::RIZ ||
|
||||
X86MCRegisterClasses[X86::GR64RegClassID].contains(RegNo) ||
|
||||
X86II::isX86_64NonExtLowByteReg(RegNo) ||
|
||||
X86II::isX86_64ExtendedReg(RegNo) ||
|
||||
X86II::is32ExtendedReg(RegNo))
|
||||
X86II::isX86_64ExtendedReg(RegNo))
|
||||
return Error(StartLoc, "register %"
|
||||
+ Tok.getString() + " is only available in 64-bit mode",
|
||||
SMRange(StartLoc, EndLoc));
|
||||
|
|
|
@ -730,12 +730,9 @@ namespace X86II {
|
|||
/// isX86_64ExtendedReg - Is the MachineOperand a x86-64 extended (r8 or
|
||||
/// higher) register? e.g. r8, xmm8, xmm13, etc.
|
||||
inline bool isX86_64ExtendedReg(unsigned RegNo) {
|
||||
if ((RegNo >= X86::XMM8 && RegNo <= X86::XMM15) ||
|
||||
(RegNo >= X86::XMM24 && RegNo <= X86::XMM31) ||
|
||||
(RegNo >= X86::YMM8 && RegNo <= X86::YMM15) ||
|
||||
(RegNo >= X86::YMM24 && RegNo <= X86::YMM31) ||
|
||||
(RegNo >= X86::ZMM8 && RegNo <= X86::ZMM15) ||
|
||||
(RegNo >= X86::ZMM24 && RegNo <= X86::ZMM31))
|
||||
if ((RegNo >= X86::XMM8 && RegNo <= X86::XMM31) ||
|
||||
(RegNo >= X86::YMM8 && RegNo <= X86::YMM31) ||
|
||||
(RegNo >= X86::ZMM8 && RegNo <= X86::ZMM31))
|
||||
return true;
|
||||
|
||||
switch (RegNo) {
|
||||
|
|
Loading…
Reference in New Issue