[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / ps4-ps5-relax-relocations.c
blob1c8200a6d58be10d2f8454800c6f85eb1e671ff2
1 // REQUIRES: x86-registered-target
3 // RUN: %clang -### -target x86_64-scei-ps4 %s -o - 2>&1 | \
4 // RUN: FileCheck %s
5 // RUN: %clang -### -target x86_64-scei-ps4 -Wa,-mrelax-relocations=yes %s -o - 2>&1 | \
6 // RUN: FileCheck %s
7 // RUN: %clang -### -target x86_64-scei-ps4 -Wa,-mrelax-relocations=no %s -o - 2>&1 | \
8 // RUN: FileCheck -check-prefix=UNSET %s
9 // RUN: %clang -### -x assembler -target x86_64-scei-ps4 %s -o - 2>&1 | \
10 // RUN: FileCheck %s
11 // RUN: %clang -### -x assembler -target x86_64-scei-ps4 -Wa,-mrelax-relocations=yes %s -o - 2>&1 | \
12 // RUN: FileCheck %s
13 // RUN: %clang -### -x assembler -target x86_64-scei-ps4 -Wa,-mrelax-relocations=no %s -o - 2>&1 | \
14 // RUN: FileCheck -check-prefix=UNSET %s
16 // RUN: %clang -### -target x86_64-sie-ps5 %s -o - 2>&1 | \
17 // RUN: FileCheck %s
18 // RUN: %clang -### -target x86_64-sie-ps5 -Wa,-mrelax-relocations=yes %s -o - 2>&1 | \
19 // RUN: FileCheck %s
20 // RUN: %clang -### -target x86_64-sie-ps5 -Wa,-mrelax-relocations=no %s -o - 2>&1 | \
21 // RUN: FileCheck -check-prefix=UNSET %s
22 // RUN: %clang -### -x assembler -target x86_64-sie-ps5 %s -o - 2>&1 | \
23 // RUN: FileCheck %s
24 // RUN: %clang -### -x assembler -target x86_64-sie-ps5 -Wa,-mrelax-relocations=yes %s -o - 2>&1 | \
25 // RUN: FileCheck %s
26 // RUN: %clang -### -x assembler -target x86_64-sie-ps5 -Wa,-mrelax-relocations=no %s -o - 2>&1 | \
27 // RUN: FileCheck -check-prefix=UNSET %s
29 // CHECK: "--mrelax-relocations"
31 // UNSET-NOT: "--mrelax-relocations"