[llvm-branch-commits] [llvm-branch] r119199 - in /llvm/branches/Apple/whitney/lib/Target/X86: AsmParser/X86AsmParser.cpp X86InstrInfo.td
Daniel Dunbar
daniel at zuster.org
Mon Nov 15 13:43:14 PST 2010
Author: ddunbar
Date: Mon Nov 15 15:43:14 2010
New Revision: 119199
URL: http://llvm.org/viewvc/llvm-project?rev=119199&view=rev
Log:
Merge r117823:
--
Author: Chris Lattner <clattner at apple.com>
Date: Sat Oct 30 18:22:53 2010 +0000
move fcompi alias to .td file and zap some useless code.
Modified:
llvm/branches/Apple/whitney/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/branches/Apple/whitney/lib/Target/X86/X86InstrInfo.td
Modified: llvm/branches/Apple/whitney/lib/Target/X86/AsmParser/X86AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/lib/Target/X86/AsmParser/X86AsmParser.cpp?rev=119199&r1=119198&r2=119199&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/branches/Apple/whitney/lib/Target/X86/AsmParser/X86AsmParser.cpp Mon Nov 15 15:43:14 2010
@@ -622,8 +622,6 @@
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 @@
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" ||
Modified: llvm/branches/Apple/whitney/lib/Target/X86/X86InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/lib/Target/X86/X86InstrInfo.td?rev=119199&r1=119198&r2=119199&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/lib/Target/X86/X86InstrInfo.td (original)
+++ llvm/branches/Apple/whitney/lib/Target/X86/X86InstrInfo.td Mon Nov 15 15:43:14 2010
@@ -1293,6 +1293,7 @@
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">;
More information about the llvm-branch-commits
mailing list