forked from OSchip/llvm-project
[clang][Sparc] Enable IAS on the remaining OS's
This commit is contained in:
parent
979d876bb4
commit
d369dd1c06
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue