From 57aefdf83089bc0cec32381153154b3281c564ba Mon Sep 17 00:00:00 2001 From: Evghenii Date: Tue, 29 Oct 2013 10:21:48 +0100 Subject: [PATCH] accepts ptx extension when target is nvptx64 --- module.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/module.cpp b/module.cpp index dce41457..02551dd8 100644 --- a/module.cpp +++ b/module.cpp @@ -953,7 +953,13 @@ Module::writeOutput(OutputType outputType, const char *outFileName, const char *fileType = NULL; switch (outputType) { case Asm: - if (strcasecmp(suffix, "s")) + if (g->target->getISA() != Target::NVPTX64) + { + if (strcasecmp(suffix, "s")) + fileType = "assembly"; + } + else + if (strcasecmp(suffix, "ptx")) fileType = "assembly"; break; case Bitcode: