[clang] b5ac372 - [VE] Change to use integrated assembly by defualt

Kazushi Marukawa via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 29 08:16:12 PDT 2020


Author: Kazushi (Jam) Marukawa
Date: 2020-10-30T00:16:04+09:00
New Revision: b5ac3721c8a497ebf33a9d0cc0d300564b0cefe1

URL: https://github.com/llvm/llvm-project/commit/b5ac3721c8a497ebf33a9d0cc0d300564b0cefe1
DIFF: https://github.com/llvm/llvm-project/commit/b5ac3721c8a497ebf33a9d0cc0d300564b0cefe1.diff

LOG: [VE] Change to use integrated assembly by defualt

We've implemented integrated assembler.  Now, we change to use
integrated assembler by default.  Update a regression test also.

Reviewed By: simoll

Differential Revision: https://reviews.llvm.org/D90396

Added: 
    

Modified: 
    clang/lib/Driver/ToolChains/VEToolchain.h
    clang/test/Driver/ve-toolchain.c

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/ToolChains/VEToolchain.h b/clang/lib/Driver/ToolChains/VEToolchain.h
index 59069c0a7595..b330331ca84e 100644
--- a/clang/lib/Driver/ToolChains/VEToolchain.h
+++ b/clang/lib/Driver/ToolChains/VEToolchain.h
@@ -26,6 +26,7 @@ class LLVM_LIBRARY_VISIBILITY VEToolChain : public Linux {
   Tool *buildLinker() const override;
 
 public:
+  bool IsIntegratedAssemblerDefault() const override { return true; }
   bool isPICDefault() const override;
   bool isPIEDefault() const override;
   bool isPICDefaultForced() const override;

diff  --git a/clang/test/Driver/ve-toolchain.c b/clang/test/Driver/ve-toolchain.c
index 7b93797ee597..3e1600cb8034 100644
--- a/clang/test/Driver/ve-toolchain.c
+++ b/clang/test/Driver/ve-toolchain.c
@@ -71,12 +71,12 @@
 /// Passing -fintegrated-as
 
 // RUN: %clang -### -target ve -x assembler %s 2>&1 | \
-// RUN:    FileCheck -check-prefix=NAS_LINK %s
-// RUN: %clang -### -target ve -fintegrated-as -x assembler %s 2>&1 | \
 // RUN:    FileCheck -check-prefix=AS_LINK %s
-
-// NAS_LINK: nas{{.*}}
-// NAS_LINK: nld{{.*}}
+// RUN: %clang -### -target ve -fno-integrated-as -x assembler %s 2>&1 | \
+// RUN:    FileCheck -check-prefix=NAS_LINK %s
 
 // AS_LINK: clang{{.*}} "-cc1as"
 // AS_LINK: nld{{.*}}
+
+// NAS_LINK: nas{{.*}}
+// NAS_LINK: nld{{.*}}


        


More information about the cfe-commits mailing list