forked from OSchip/llvm-project
52 lines
2.4 KiB
C
52 lines
2.4 KiB
C
/// General tests that the ld -z relax=transtls workaround is only applied
|
|
/// on Solaris/amd64. Note that we use sysroot to make these tests
|
|
/// independent of the host system.
|
|
|
|
/// Check sparc-sun-solaris2.11, 32bit
|
|
// RUN: %clang --target=sparc-sun-solaris2.11 %s -### 2>&1 \
|
|
// RUN: --gcc-toolchain="" --sysroot=%S/Inputs/solaris_sparc_tree \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD-SPARC32 %s
|
|
// CHECK-LD-SPARC32-NOT: -zrelax=transtls
|
|
|
|
/// Check sparc-sun-solaris2.11, 32bit
|
|
// RUN: %clang -fsanitize=undefined --target=sparc-sun-solaris2.11 %s -### 2>&1 \
|
|
// RUN: --gcc-toolchain="" --sysroot=%S/Inputs/solaris_sparc_tree \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD-SPARC32 %s
|
|
// CHECK-LD-SPARC32-NOT: -zrelax=transtls
|
|
|
|
/// Check sparc-sun-solaris2.11, 64bit
|
|
// RUN: %clang -m64 --target=sparc-sun-solaris2.11 %s -### 2>&1 \
|
|
// RUN: --gcc-toolchain="" --sysroot=%S/Inputs/solaris_sparc_tree \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD-SPARC64 %s
|
|
// CHECK-LD-SPARC64-NOT: -zrelax=transtls
|
|
|
|
/// Check sparc-sun-solaris2.11, 64bit
|
|
// RUN: %clang -m64 -fsanitize=undefined --target=sparc-sun-solaris2.11 %s -### 2>&1 \
|
|
// RUN: --gcc-toolchain="" --sysroot=%S/Inputs/solaris_sparc_tree \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD-SPARC64 %s
|
|
// CHECK-LD-SPARC64-NOT: -zrelax=transtls
|
|
|
|
/// Check i386-pc-solaris2.11, 32bit
|
|
// RUN: %clang --target=i386-pc-solaris2.11 %s -### 2>&1 \
|
|
// RUN: --gcc-toolchain="" --sysroot=%S/Inputs/solaris_x86_tree \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD-X32 %s
|
|
// CHECK-LD-X32-NOT: -zrelax=transtls
|
|
|
|
/// Check i386-pc-solaris2.11, 32bit
|
|
// RUN: %clang -fsanitize=undefined --target=i386-pc-solaris2.11 %s -### 2>&1 \
|
|
// RUN: --gcc-toolchain="" --sysroot=%S/Inputs/solaris_x86_tree \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD-X32 %s
|
|
// CHECK-LD-X32-NOT: -zrelax=transtls
|
|
|
|
/// Check i386-pc-solaris2.11, 64bit
|
|
// RUN: %clang -m64 --target=i386-pc-solaris2.11 %s -### 2>&1 \
|
|
// RUN: --gcc-toolchain="" --sysroot=%S/Inputs/solaris_x86_tree \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD-X64 %s
|
|
// CHECK-LD-X64-NOT: -zrelax=transtls
|
|
|
|
/// Check i386-pc-solaris2.11, 64bit
|
|
// RUN: %clang -m64 -fsanitize=undefined --target=i386-pc-solaris2.11 %s -### 2>&1 \
|
|
// RUN: --gcc-toolchain="" --sysroot=%S/Inputs/solaris_x86_tree \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD-X64-UBSAN %s
|
|
// CHECK-LD-X64-UBSAN: -zrelax=transtls
|