Enable IAS for FreeBSD SPARC64.

llvm-svn: 357878
This commit is contained in:
Brad Smith 2019-04-07 23:12:31 +00:00
parent e4f95e8e39
commit 0e5ccd9cec
2 changed files with 8 additions and 5 deletions

View File

@ -2547,7 +2547,8 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const {
case llvm::Triple::sparc:
case llvm::Triple::sparcel:
case llvm::Triple::sparcv9:
if (getTriple().isOSSolaris() || getTriple().isOSOpenBSD())
if (getTriple().isOSFreeBSD() || getTriple().isOSOpenBSD() ||
getTriple().isOSSolaris())
return true;
return false;
default:

View File

@ -184,9 +184,11 @@
// RUN: | FileCheck -check-prefix=CHECK-MIPS64-CPU %s
// CHECK-MIPS64-CPU: "-target-cpu" "mips3"
// Check that the integrated assembler is enabled for MIPS64
// Check that the integrated assembler is enabled for MIPS64/SPARC64
// RUN: %clang -target mips64-unknown-freebsd -### -c %s 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-MIPS64-AS %s
// RUN: | FileCheck -check-prefix=CHECK-IAS %s
// RUN: %clang -target mips64el-unknown-freebsd -### -c %s 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-MIPS64-AS %s
// CHECK-MIPS64-AS-NOT: "-no-integrated-as"
// RUN: | FileCheck -check-prefix=CHECK-IAS %s
// RUN: %clang -target sparc64-unknown-freebsd -### -c %s 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-IAS %s
// CHECK-IAS-NOT: "-no-integrated-as"