<div dir="ltr">Do we have a SPARC builder? Can we self-host? (Just curious; I'm clueless about the state of SPARC in LLVM and it seems to be getting some action recently).<div><br></div><div>-- Sean Silva</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Jan 11, 2014 at 1:25 PM, Jakob Stoklund Olesen <span dir="ltr"><<a href="mailto:stoklund@2pi.dk" target="_blank">stoklund@2pi.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Author: stoklund<br>
Date: Sat Jan 11 12:25:01 2014<br>
New Revision: 199012<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=199012&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=199012&view=rev</a><br>
Log:<br>
Select the UltraSPARC instruction set when invoking the assembler.<br>
<br>
Modified:<br>
cfe/trunk/lib/Driver/Tools.cpp<br>
cfe/trunk/test/Driver/linux-as.c<br>
<br>
Modified: cfe/trunk/lib/Driver/Tools.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=199012&r1=199011&r2=199012&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=199012&r1=199011&r2=199012&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/lib/Driver/Tools.cpp (original)<br>
+++ cfe/trunk/lib/Driver/Tools.cpp Sat Jan 11 12:25:01 2014<br>
@@ -6291,8 +6291,10 @@ void gnutools::Assemble::ConstructJob(Co<br>
CmdArgs.push_back("-many");<br>
} else if (getToolChain().getArch() == llvm::Triple::sparc) {<br>
CmdArgs.push_back("-32");<br>
+ CmdArgs.push_back("-Av8plusa");<br>
} else if (getToolChain().getArch() == llvm::Triple::sparcv9) {<br>
CmdArgs.push_back("-64");<br>
+ CmdArgs.push_back("-Av9a");<br>
} else if (getToolChain().getArch() == llvm::Triple::arm) {<br>
StringRef MArch = getToolChain().getArchName();<br>
if (MArch == "armv7" || MArch == "armv7a" || MArch == "armv7-a")<br>
<br>
Modified: cfe/trunk/test/Driver/linux-as.c<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/linux-as.c?rev=199012&r1=199011&r2=199012&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/linux-as.c?rev=199012&r1=199011&r2=199012&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/Driver/linux-as.c (original)<br>
+++ cfe/trunk/test/Driver/linux-as.c Sat Jan 11 12:25:01 2014<br>
@@ -65,6 +65,7 @@<br>
// RUN: | FileCheck -check-prefix=CHECK-SPARCV9 %s<br>
// CHECK-SPARCV9: as<br>
// CHECK-SPARCV9: -64<br>
+// CHECK-SPARCV9: -Av9a<br>
// CHECK-SPARCV9: -o<br>
//<br>
// RUN: %clang -target sparc-linux -mcpu=invalid-cpu -### \<br>
@@ -72,6 +73,7 @@<br>
// RUN: | FileCheck -check-prefix=CHECK-SPARCV8 %s<br>
// CHECK-SPARCV8: as<br>
// CHECK-SPARCV8: -32<br>
+// CHECK-SPARCV8: -Av8plusa<br>
// CHECK-SPARCV8: -o<br>
//<br>
// RUN: %clang -target s390x-linux -### -no-integrated-as -c %s 2>&1 \<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>