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

Jakob Stoklund Olesen stoklund at 2pi.dk
Sat Jan 11 10:25:02 PST 2014


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 \





More information about the cfe-commits mailing list