From 3b01619107a3bdfa5316fad91c3875dc7f711cb6 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 6 Oct 2014 17:33:18 +0000 Subject: [PATCH] Turn on the integrated assembler by default for ppc64 and ppc64le. Reviewed by Hal Finkel and Bill Schmidt. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219129 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/ToolChains.cpp | 4 +++- test/Driver/ppc-features.cpp | 4 ++-- test/Driver/unknown-gcc-arch.c | 18 +++++++++--------- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index d85a67d656..bd14759ad1 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -2150,7 +2150,9 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const { getTriple().getArch() == llvm::Triple::arm || getTriple().getArch() == llvm::Triple::armeb || getTriple().getArch() == llvm::Triple::thumb || - getTriple().getArch() == llvm::Triple::thumbeb; + getTriple().getArch() == llvm::Triple::thumbeb || + getTriple().getArch() == llvm::Triple::ppc64 || + getTriple().getArch() == llvm::Triple::ppc64le; } void Generic_ELF::addClangTargetOptions(const ArgList &DriverArgs, diff --git a/test/Driver/ppc-features.cpp b/test/Driver/ppc-features.cpp index fa9a7ecd4d..c7b59cc7aa 100644 --- a/test/Driver/ppc-features.cpp +++ b/test/Driver/ppc-features.cpp @@ -102,11 +102,11 @@ // CHECK-CRBITS: "-target-feature" "+crbits" // Assembler features -// RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK_BE_AS_ARGS %s +// RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -o %t.o -no-integrated-as 2>&1 | FileCheck -check-prefix=CHECK_BE_AS_ARGS %s // CHECK_BE_AS_ARGS: "-mppc64" // CHECK_BE_AS_ARGS: "-many" -// RUN: %clang -target powerpc64le-unknown-linux-gnu %s -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK_LE_AS_ARGS %s +// RUN: %clang -target powerpc64le-unknown-linux-gnu %s -### -o %t.o -no-integrated-as 2>&1 | FileCheck -check-prefix=CHECK_LE_AS_ARGS %s // CHECK_LE_AS_ARGS: "-mppc64" // CHECK_LE_AS_ARGS: "-many" // CHECK_LE_AS_ARGS: "-mlittle-endian" diff --git a/test/Driver/unknown-gcc-arch.c b/test/Driver/unknown-gcc-arch.c index 6317e13ec4..9e687b76a4 100644 --- a/test/Driver/unknown-gcc-arch.c +++ b/test/Driver/unknown-gcc-arch.c @@ -14,23 +14,23 @@ // RUN: -no-integrated-as 2>&1 | FileCheck -check-prefix=I386-M64 %s // I386-M64: {{.*as.*--64}} - -// RUN: %clang -target powerpc64-unknown-unknown -c -x assembler %s -### 2>&1 \ -// RUN: | FileCheck -check-prefix=PPC64 %s +// RUN: %clang -target powerpc64-unknown-unknown -c -x assembler %s -### \ +// RUN: -no-integrated-as 2>&1 | FileCheck -check-prefix=PPC64 %s // PPC64: {{.*as.*-a64}} -// RUN: %clang -target powerpc64-unknown-unknown -c -x assembler %s -### -m32 2>&1 \ -// RUN: | FileCheck -check-prefix=PPC64-M32 %s +// RUN: %clang -target powerpc-unknown-unknown -c -x assembler %s -### -m64 \ +// RUN: -no-integrated-as 2>&1 | FileCheck -check-prefix=PPC-M64 %s +// PPC-M64: {{.*as.*-a64}} + + +// RUN: %clang -target powerpc64-unknown-unknown -c -x assembler %s -### -m32 \ +// RUN: 2>&1 | FileCheck -check-prefix=PPC64-M32 %s // PPC64-M32: {{.*as.*-a32}} // RUN: %clang -target powerpc-unknown-unknown -c -x assembler %s -### 2>&1 \ // RUN: | FileCheck -check-prefix=PPC %s // PPC: {{.*as.*-a32}} -// RUN: %clang -target powerpc-unknown-unknown -c -x assembler %s -### -m64 2>&1 \ -// RUN: | FileCheck -check-prefix=PPC-M64 %s -// PPC-M64: {{.*as.*-a64}} - // RUN: %clang -target sparc64-unknown-unknown -no-integrated-as -c -x assembler %s -### -m32 2>&1 \ // RUN: | FileCheck -check-prefix=SPARCV8 %s // SPARCV8: {{.*as.*-32}} -- 2.40.0