diff options
| author | Kevin Enderby <enderby@apple.com> | 2010-07-13 20:05:41 +0000 |
|---|---|---|
| committer | Kevin Enderby <enderby@apple.com> | 2010-07-13 20:05:41 +0000 |
| commit | 52a18aedaebbd87931c6705165e62986700a49d6 (patch) | |
| tree | 1f005211b95140afcabaed0057a394defb6c9a8c /lib/Target | |
| parent | 6382d2caddb98f30f556b43faa898ff675affaf7 (diff) | |
Added a check that pusha cannot be encoded in 64-bit mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
| -rw-r--r-- | lib/Target/X86/AsmParser/X86AsmParser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp index a856e9cc7a..9e219baa29 100644 --- a/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp @@ -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"); |
