r199012 - Select the UltraSPARC instruction set when invoking the assembler.

Sean Silva silvas at purdue.edu
Sat Jan 11 21:22:59 PST 2014


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).

-- Sean Silva


On Sat, Jan 11, 2014 at 1:25 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk>wrote:

> Author: stoklund
> Date: Sat Jan 11 12:25:01 2014
> New Revision: 199012
>
> URL: http://llvm.org/viewvc/llvm-project?rev=199012&view=rev
> Log:
> Select the UltraSPARC instruction set when invoking the assembler.
>
> Modified:
>     cfe/trunk/lib/Driver/Tools.cpp
>     cfe/trunk/test/Driver/linux-as.c
>
> Modified: cfe/trunk/lib/Driver/Tools.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=199012&r1=199011&r2=199012&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Driver/Tools.cpp (original)
> +++ cfe/trunk/lib/Driver/Tools.cpp Sat Jan 11 12:25:01 2014
> @@ -6291,8 +6291,10 @@ void gnutools::Assemble::ConstructJob(Co
>      CmdArgs.push_back("-many");
>    } else if (getToolChain().getArch() == llvm::Triple::sparc) {
>      CmdArgs.push_back("-32");
> +    CmdArgs.push_back("-Av8plusa");
>    } else if (getToolChain().getArch() == llvm::Triple::sparcv9) {
>      CmdArgs.push_back("-64");
> +    CmdArgs.push_back("-Av9a");
>    } else if (getToolChain().getArch() == llvm::Triple::arm) {
>      StringRef MArch = getToolChain().getArchName();
>      if (MArch == "armv7" || MArch == "armv7a" || MArch == "armv7-a")
>
> Modified: cfe/trunk/test/Driver/linux-as.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/linux-as.c?rev=199012&r1=199011&r2=199012&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/Driver/linux-as.c (original)
> +++ cfe/trunk/test/Driver/linux-as.c Sat Jan 11 12:25:01 2014
> @@ -65,6 +65,7 @@
>  // RUN:   | FileCheck -check-prefix=CHECK-SPARCV9 %s
>  // CHECK-SPARCV9: as
>  // CHECK-SPARCV9: -64
> +// CHECK-SPARCV9: -Av9a
>  // CHECK-SPARCV9: -o
>  //
>  // RUN: %clang -target sparc-linux -mcpu=invalid-cpu -### \
> @@ -72,6 +73,7 @@
>  // RUN:   | FileCheck -check-prefix=CHECK-SPARCV8 %s
>  // CHECK-SPARCV8: as
>  // CHECK-SPARCV8: -32
> +// CHECK-SPARCV8: -Av8plusa
>  // CHECK-SPARCV8: -o
>  //
>  // RUN: %clang -target s390x-linux -### -no-integrated-as -c %s 2>&1 \
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140112/72be50da/attachment.html>


More information about the cfe-commits mailing list