summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-07-21 01:25:49 +0000
committerNate Begeman <natebegeman@mac.com>2005-07-21 01:25:49 +0000
commit15527113abb1358b05ab079a43b8f8eb71b31711 (patch)
treef88ddda3a42dcc83b78b084be60ff35276d0c34a
parent4e6c118b4dd729e26a2675c1ae1d27637d811c56 (diff)
downloadbcm5719-llvm-15527113abb1358b05ab079a43b8f8eb71b31711.tar.gz
bcm5719-llvm-15527113abb1358b05ab079a43b8f8eb71b31711.zip
Support assembling fsqrt on darwin. This will be implemented better when
PowerPC gets subtarget support up. llvm-svn: 22489
-rw-r--r--llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
index 9a9752c73bc..992446e76f7 100644
--- a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
@@ -192,6 +192,7 @@ namespace {
void printConstantPool(MachineConstantPool *MCP);
bool runOnMachineFunction(MachineFunction &F);
+ bool doInitialization(Module &M);
bool doFinalization(Module &M);
};
@@ -426,6 +427,14 @@ void DarwinAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
}
}
+bool DarwinAsmPrinter::doInitialization(Module &M) {
+ // FIXME: implment subtargets for PowerPC and pick this up from there.
+ O << "\t.machine ppc970\n";
+
+ AsmPrinter::doInitialization(M);
+ return false;
+}
+
bool DarwinAsmPrinter::doFinalization(Module &M) {
const TargetData &TD = TM.getTargetData();
std::string CurSection;
OpenPOWER on IntegriCloud