]> granicus.if.org Git - clang/commitdiff
Select the UltraSPARC instruction set when invoking the assembler.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 11 Jan 2014 18:25:01 +0000 (18:25 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 11 Jan 2014 18:25:01 +0000 (18:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199012 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp
test/Driver/linux-as.c

index 9a43afe7d462fa43ecc8a75312bcb17094bd831b..8643085199fc501f285e5ffb9a737aff8863b98f 100644 (file)
@@ -6291,8 +6291,10 @@ void gnutools::Assemble::ConstructJob(Compilation &C, const JobAction &JA,
     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")
index 5d852219d8a14128e5e507d704a13c165d0f28be..381ccf563329c74761f4a1056959c91215a52161 100644 (file)
@@ -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 \