Added a check that pusha cannot be encoded in 64-bit mode.

llvm-svn: 108265
This commit is contained in:
Kevin Enderby 2010-07-13 20:05:41 +00:00
parent fc4b8b8e80
commit 76a6b663a3
1 changed files with 2 additions and 0 deletions

View File

@ -612,6 +612,8 @@ ParseInstruction(const StringRef &Name, SMLoc NameLoc,
return Error(NameLoc, "popfl cannot be encoded in 64-bit mode");
else if (Name == "pushfl")
return Error(NameLoc, "pushfl cannot be encoded in 64-bit mode");
else if (Name == "pusha")
return Error(NameLoc, "pusha cannot be encoded in 64-bit mode");
} else {
if (Name == "popfq")
return Error(NameLoc, "popfq cannot be encoded in 32-bit mode");