1 // REQUIRES: x86-registered-target
3 // RUN: %clang -### -target x86_64-scei-ps4 %s -o - 2>&1 | \
5 // RUN: %clang -### -target x86_64-scei-ps4 -Wa,-mrelax-relocations=yes %s -o - 2>&1 | \
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 | \
11 // RUN: %clang -### -x assembler -target x86_64-scei-ps4 -Wa,-mrelax-relocations=yes %s -o - 2>&1 | \
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 | \
18 // RUN: %clang -### -target x86_64-sie-ps5 -Wa,-mrelax-relocations=yes %s -o - 2>&1 | \
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 | \
24 // RUN: %clang -### -x assembler -target x86_64-sie-ps5 -Wa,-mrelax-relocations=yes %s -o - 2>&1 | \
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"