bolt/deps/llvm-18.1.8/clang/test/Driver/ps4-ps5-cpu-defaults.cpp
2025-02-14 19:21:04 +01:00

10 lines
442 B
C++

// Check that on the PS4 we default to:
// -target-cpu btver2, not -tune-cpu generic
// And on the PS5 we default to:
// -target-cpu znver2, not -tune-cpu generic
// RUN: %clang -target x86_64-scei-ps4 -c %s -### 2>&1 | FileCheck --check-prefixes=PS4,BOTH %s
// RUN: %clang -target x86_64-sie-ps5 -c %s -### 2>&1 | FileCheck --check-prefixes=PS5,BOTH %s
// PS4: "-target-cpu" "btver2"
// PS5: "-target-cpu" "znver2"
// BOTH-NOT: "-tune-cpu"