[clang] [clang][PS5] Clang driver PS5 - pass the target CPU to lld. (PR #202924)
Edd Dawson via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 10 05:51:47 PDT 2026
================
@@ -220,3 +220,9 @@
// CHECK-NO-FAT-LTO: {{ld(\.exe)?}}"
// CHECK-NO-FAT-LTO-NOT: "--fat-lto-objects"
// CHECK-NO-FAT-LTO-SAME: {{$}}
+
+// Check -plugin-opt=mcpu=znver2s is passed to prospero-lld.
+// RUN: %clang --target=x86_64-sie-ps5 %s -### 2>&1 | FileCheck --check-prefixes=CHECK-CLANG-TARGET-CPU %s
+
+// CHECK-CLANG-TARGET-CPU: {{ld(\.exe)?}}"
+// CHECK-CLANG-TARGET-CPU: "-plugin-opt=mcpu=znver2s"
----------------
playstation-edd wrote:
`znver2s` names our downstream model with private tweaks. The trailing `s"` needs to be removed from the CHECK.
https://github.com/llvm/llvm-project/pull/202924
More information about the cfe-commits
mailing list