From 76a6b663a360bb115be888fd5836d5afa1f86699 Mon Sep 17 00:00:00 2001 From: Kevin Enderby Date: Tue, 13 Jul 2010 20:05:41 +0000 Subject: [PATCH] Added a check that pusha cannot be encoded in 64-bit mode. llvm-svn: 108265 --- llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp index a856e9cc7a4e..9e219baa2939 100644 --- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/llvm/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");