Added a check that pusha cannot be encoded in 64-bit mode.
authorKevin Enderby <enderby@apple.com>
Tue, 13 Jul 2010 20:05:41 +0000 (20:05 +0000)
committerKevin Enderby <enderby@apple.com>
Tue, 13 Jul 2010 20:05:41 +0000 (20:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108265 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmParser/X86AsmParser.cpp

index a856e9cc7a4e0aa031da6f1cbcef82db5bcd5a99..9e219baa2939aa6159b3720a83ab6776adb1a9a6 100644 (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");