brintos

brintos / llvm-project-archived public Read only

0
0
Text · 845 B · c9987c2 Raw
19 lines · c
1/// PS4/PS5 miscellaneous toolchain behavior.2 3// RUN: %clang -c %s -### -target x86_64-scei-ps4 2>&1 | FileCheck %s4// RUN: %clang -c %s -### -target x86_64-sie-ps5 2>&1 | FileCheck %s5// 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=LTO11// RUN: %clang %s -### -target x86_64-sie-ps5 -flto 2>&1 | FileCheck %s --check-prefix=LTO12// LTO-NOT: error:13// LTO-NOT: unable to pass LLVM bit-code14 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 %s17// JUMPTABLESIZES: "-mllvm" "-emit-jump-table-sizes-section"18// JUMPTABLESIZES: "-plugin-opt=-emit-jump-table-sizes-section"19