| 1 |
/// PS4/PS5 miscellaneous toolchain behavior. |
| 2 |
|
| 3 |
// RUN: %clang -c %s -### -target x86_64-scei-ps4 2>&1 | FileCheck %s |
| 4 |
// RUN: %clang -c %s -### -target x86_64-sie-ps5 2>&1 | FileCheck %s |
| 5 |
// CHECK-DAG: "-ffunction-sections" |
| 6 |
// CHECK-DAG: "-fdata-sections" |
| 7 |
// CHECK-DAG: "-fdeclspec" |
| 8 |
|
| 9 |
/// Verify LTO is enabled (no diagnostic). |
| 10 |
// RUN: %clang %s -### -target x86_64-scei-ps4 -flto 2>&1 | FileCheck %s --check-prefix=LTO |
| 11 |
// RUN: %clang %s -### -target x86_64-sie-ps5 -flto 2>&1 | FileCheck %s --check-prefix=LTO |
| 12 |
// LTO-NOT: error: |
| 13 |
// LTO-NOT: unable to pass LLVM bit-code |
| 14 |
|
| 15 |
// Verify that the jump table sizes section is enabled. |
| 16 |
// RUN: %clang %s -target x86_64-sie-ps5 -### 2>&1 | FileCheck -check-prefix=JUMPTABLESIZES %s |
| 17 |
// JUMPTABLESIZES: "-mllvm" "-emit-jump-table-sizes-section" |
| 18 |
// JUMPTABLESIZES: "-plugin-opt=-emit-jump-table-sizes-section" |