xref: /llvm-project/clang/test/Driver/ps4-ps5-cpu-defaults.cpp (revision 501cc4ae304f29e392a2b7e21c316e3abf954daa)
1*501cc4aeSPaul Robinson // Check that on the PS4 we default to:
2*501cc4aeSPaul Robinson // -target-cpu btver2, not -tune-cpu generic
3*501cc4aeSPaul Robinson // And on the PS5 we default to:
4*501cc4aeSPaul Robinson // -target-cpu znver2, not -tune-cpu generic
5*501cc4aeSPaul Robinson 
6*501cc4aeSPaul Robinson // RUN: %clang -target x86_64-scei-ps4 -c %s -### 2>&1 | FileCheck --check-prefixes=PS4,BOTH %s
7*501cc4aeSPaul Robinson // RUN: %clang -target x86_64-sie-ps5 -c %s -### 2>&1 | FileCheck --check-prefixes=PS5,BOTH %s
8*501cc4aeSPaul Robinson // PS4: "-target-cpu" "btver2"
9*501cc4aeSPaul Robinson // PS5: "-target-cpu" "znver2"
10*501cc4aeSPaul Robinson // BOTH-NOT: "-tune-cpu"
11