diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index b7984c5482..fe195f3606 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -2377,9 +2377,6 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const { case llvm::Triple::ppc: case llvm::Triple::ppc64: case llvm::Triple::ppc64le: - case llvm::Triple::sparc: - case llvm::Triple::sparcel: - case llvm::Triple::sparcv9: case llvm::Triple::systemz: return true; default: diff --git a/test/Driver/sparc-as.c b/test/Driver/sparc-as.c index d44e8453bd..5b939956cb 100644 --- a/test/Driver/sparc-as.c +++ b/test/Driver/sparc-as.c @@ -1,3 +1,17 @@ +// Make sure Sparc does not use the integrated assembler by default. + +// RUN: %clang -target sparc-linux -### -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=NO-IAS %s + +// RUN: %clang -target sparc-linux -fintegrated-as -### -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=IAS %s + +// RUN: %clang -target sparc-linux -fno-integrated-as -### -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=NO-IAS %s + +// IAS-NOT: "-no-integrated-as" +// NO-IAS: "-no-integrated-as" + // RUN: %clang -no-canonical-prefixes -target sparc--netbsd \ // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \ // RUN: | FileCheck -check-prefix=SPARC %s diff --git a/test/Driver/sparcv9-as.c b/test/Driver/sparcv9-as.c index 9e6249c575..3b641cc98d 100644 --- a/test/Driver/sparcv9-as.c +++ b/test/Driver/sparcv9-as.c @@ -1,3 +1,17 @@ +// Make sure SparcV9 does not use the integrated assembler by default. + +// RUN: %clang -target sparcv9-linux -### -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=NO-IAS %s + +// RUN: %clang -target sparcv9-linux -fintegrated-as -### -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=IAS %s + +// RUN: %clang -target sparcv9-linux -fno-integrated-as -### -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=NO-IAS %s + +// IAS-NOT: "-no-integrated-as" +// NO-IAS: "-no-integrated-as" + // RUN: %clang -no-canonical-prefixes -target sparcv9--netbsd \ // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \ // RUN: | FileCheck -check-prefix=SPARC %s