[clang] 2ed0123 - [PS5] Check for HasNativeLLVMSupport

Paul Robinson via cfe-commits cfe-commits at lists.llvm.org
Mon May 2 11:12:03 PDT 2022


Author: Paul Robinson
Date: 2022-05-02T11:06:33-07:00
New Revision: 2ed0123b7fedd6360b0dc06cab9721f108123a98

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

LOG: [PS5] Check for HasNativeLLVMSupport

Added: 
    

Modified: 
    clang/test/Driver/ps4-ps5-toolchain.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/ps4-ps5-toolchain.c b/clang/test/Driver/ps4-ps5-toolchain.c
index 308b80c6774b5..444e9df24714b 100644
--- a/clang/test/Driver/ps4-ps5-toolchain.c
+++ b/clang/test/Driver/ps4-ps5-toolchain.c
@@ -1,7 +1,13 @@
-// PS4/PS5 miscellaneous toolchain defaults.
+/// PS4/PS5 miscellaneous toolchain behavior.
 
 // RUN: %clang -c %s -### -target x86_64-scei-ps4 2>&1 | FileCheck %s
 // RUN: %clang -c %s -### -target x86_64-sie-ps5 2>&1 | FileCheck %s
 // CHECK-DAG: "-ffunction-sections"
 // CHECK-DAG: "-fdata-sections"
 // CHECK-DAG: "-fdeclspec"
+
+/// Verify LTO is enabled (no diagnostic).
+// RUN: %clang %s -### -target x86_64-scei-ps4 -flto 2>&1 | FileCheck %s --check-prefix=LTO
+// RUN: %clang %s -### -target x86_64-sie-ps5 -flto 2>&1 | FileCheck %s --check-prefix=LTO
+// LTO-NOT: error:
+// LTO-NOT: unable to pass LLVM bit-code


        


More information about the cfe-commits mailing list