aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-10-30 18:14:54 +0000
committerChris Lattner <sabre@nondot.org>2010-10-30 18:14:54 +0000
commita17a9a00dcd57f8352803e9b8e827d23192494cb (patch)
tree5654211a44eeb65e6011fabda9cb9ea22a96ef1a /lib
parent1a1ecc9f3c2684249bd765d1299302d629aaf4fe (diff)
downloadexternal_llvm-a17a9a00dcd57f8352803e9b8e827d23192494cb.zip
external_llvm-a17a9a00dcd57f8352803e9b8e827d23192494cb.tar.gz
external_llvm-a17a9a00dcd57f8352803e9b8e827d23192494cb.tar.bz2
move sal aliases to .td file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/AsmParser/X86AsmParser.cpp5
-rw-r--r--lib/Target/X86/X86InstrInfo.td5
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp
index e924416..9e31833 100644
--- a/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -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")
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td
index 6f99086..71e90c0 100644
--- a/lib/Target/X86/X86InstrInfo.td
+++ b/lib/Target/X86/X86InstrInfo.td
@@ -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">;