diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-10-30 18:22:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-10-30 18:22:53 +0000 |
| commit | 462bc666d209780c0afdd858d6875f0a21fe2809 (patch) | |
| tree | b609779a5829e0fc09b4f7c3b9d9515b92c6f473 /llvm/lib/Target | |
| parent | daae9eea8a42beefd6abb2efe94871037c0bb223 (diff) | |
| download | bcm5719-llvm-462bc666d209780c0afdd858d6875f0a21fe2809.tar.gz bcm5719-llvm-462bc666d209780c0afdd858d6875f0a21fe2809.zip | |
move fcompi alias to .td file and zap some useless code.
llvm-svn: 117823
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp | 11 | ||||
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.td | 1 |
2 files changed, 1 insertions, 11 deletions
diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp index 111afbf47a6..bd31ad4e28c 100644 --- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp @@ -622,8 +622,6 @@ ParseInstruction(StringRef Name, SMLoc NameLoc, SmallVectorImpl<MCParsedAsmOperand*> &Operands) { // FIXME: Hack to recognize some aliases. StringRef PatchedName = StringSwitch<StringRef>(Name) - .Case("repe", "rep") - .Case("repz", "rep") .Case("push", Is64Bit ? "pushq" : "pushl") .Case("pop", Is64Bit ? "popq" : "popl") .Case("pushf", Is64Bit ? "pushfq" : "pushfl") @@ -921,15 +919,6 @@ ParseInstruction(StringRef Name, SMLoc NameLoc, NameLoc, NameLoc)); } - // The assembler accepts this instruction with no operand as a synonym for an - // instruction taking %st(1),%st(0). e.g. "fcompi" -> "fcompi %st(1),st(0)". - if (Name == "fcompi" && Operands.size() == 1) { - Operands.push_back(X86Operand::CreateReg(MatchRegisterName("st(1)"), - NameLoc, NameLoc)); - Operands.push_back(X86Operand::CreateReg(MatchRegisterName("st(0)"), - NameLoc, NameLoc)); - } - // The assembler accepts these instructions with two few operands as a synonym // for taking %st(1),%st(0) or X, %st(0). if ((Name == "fcomi" || Name == "fucomi" || Name == "fucompi" || diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td index 9df65293890..8dc360a5010 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.td +++ b/llvm/lib/Target/X86/X86InstrInfo.td @@ -1293,6 +1293,7 @@ def : MnemonicAlias<"fcmova", "fcmovnbe">; def : MnemonicAlias<"fcmovnae", "fcmovb">; def : MnemonicAlias<"fcmovna", "fcmovbe">; def : MnemonicAlias<"fcmovae", "fcmovnb">; +def : MnemonicAlias<"fcompi", "fcomip">; def : MnemonicAlias<"fildq", "fildll">; def : MnemonicAlias<"fldcww", "fldcw">; def : MnemonicAlias<"fnstcww", "fnstcw">; |

