From: Chris Lattner Date: Sat, 30 Oct 2010 18:14:54 +0000 (+0000) Subject: move sal aliases to .td file. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a17a9a00dcd57f8352803e9b8e827d23192494cb;p=oota-llvm.git move sal aliases to .td file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117821 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp index e92441682cf..9e31833fca9 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(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 6f9908635e9..71e90c0ae6d 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">;