move sal aliases to .td file.
authorChris Lattner <sabre@nondot.org>
Sat, 30 Oct 2010 18:14:54 +0000 (18:14 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 30 Oct 2010 18:14:54 +0000 (18:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117821 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmParser/X86AsmParser.cpp
lib/Target/X86/X86InstrInfo.td

index e92441682cfea8664df9968384293e53252f5614..9e31833fca9b78031c499c06d63cd591ab7d47f1 100644 (file)
@@ -624,11 +624,6 @@ ParseInstruction(StringRef Name, SMLoc NameLoc,
   // represent alternative syntaxes in the .td file, without requiring
   // instruction duplication.
   StringRef PatchedName = StringSwitch<StringRef>(Name)
-    .Case("sal", "shl")
-    .Case("salb", "shlb")
-    .Case("sall", "shll")
-    .Case("salq", "shlq")
-    .Case("salw", "shlw")
     .Case("repe", "rep")
     .Case("repz", "rep")
     .Case("repnz", "repne")
index 6f9908635e921e481f8dc6cf82a9870137a0662e..71e90c0ae6d05bee95353d6d454dbcb1e3ccd655 100644 (file)
@@ -1269,6 +1269,11 @@ def : MnemonicAlias<"cdqe", "cltq">;
 def : MnemonicAlias<"pushfd", "pushfl">;
 def : MnemonicAlias<"popfd",  "popfl">;
 
+def : MnemonicAlias<"salb", "shlb">;
+def : MnemonicAlias<"salw", "shlw">;
+def : MnemonicAlias<"sall", "shll">;
+def : MnemonicAlias<"salq", "shlq">;
+
 def : MnemonicAlias<"smovb", "movsb">;
 def : MnemonicAlias<"smovw", "movsw">;
 def : MnemonicAlias<"smovl", "movsl">;