[clang][Sparc] Enable IAS on the remaining OS's

This commit is contained in:
Brad Smith 2022-04-02 02:18:30 -04:00
parent 979d876bb4
commit d369dd1c06
3 changed files with 7 additions and 11 deletions

View File

@ -2746,6 +2746,9 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const {
case llvm::Triple::ppc64le:
case llvm::Triple::riscv32:
case llvm::Triple::riscv64:
case llvm::Triple::sparc:
case llvm::Triple::sparcel:
case llvm::Triple::sparcv9:
case llvm::Triple::systemz:
case llvm::Triple::mips:
case llvm::Triple::mipsel:
@ -2754,13 +2757,6 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const {
case llvm::Triple::msp430:
case llvm::Triple::m68k:
return true;
case llvm::Triple::sparc:
case llvm::Triple::sparcel:
case llvm::Triple::sparcv9:
if (getTriple().isOSFreeBSD() || getTriple().isOSOpenBSD() ||
getTriple().isOSSolaris())
return true;
return false;
default:
return false;
}

View File

@ -1,7 +1,7 @@
// Make sure Sparc does not use the integrated assembler by default.
// Make sure Sparc does use the integrated assembler by default.
// RUN: %clang -target sparc-linux -### -c %s 2>&1 \
// RUN: | FileCheck -check-prefix=NO-IAS %s
// RUN: | FileCheck -check-prefix=IAS %s
// RUN: %clang -target sparc-linux -fintegrated-as -### -c %s 2>&1 \
// RUN: | FileCheck -check-prefix=IAS %s

View File

@ -1,7 +1,7 @@
// Make sure SparcV9 does not use the integrated assembler by default.
// Make sure SparcV9 does use the integrated assembler by default.
// RUN: %clang -target sparcv9-linux -### -c %s 2>&1 \
// RUN: | FileCheck -check-prefix=NO-IAS %s
// RUN: | FileCheck -check-prefix=IAS %s
// RUN: %clang -target sparcv9-linux -fintegrated-as -### -c %s 2>&1 \
// RUN: | FileCheck -check-prefix=IAS %s