Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Driver / aix-small-local-exec-tls.c
blob7a2eec6989eef8909f2bf03bc84f474473d1adc8
1 // RUN: %clang -target powerpc64-unknown-aix -S -emit-llvm %s -o - | FileCheck %s
2 // RUN: %clang -target powerpc-unknown-aix -S -emit-llvm %s -o - | FileCheck %s
3 // RUN: %clang -target powerpc64le-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s
4 // RUN: %clang -target powerpc64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s
6 // RUN: %clang -target powerpc64-unknown-aix -maix-small-local-exec-tls -S -emit-llvm \
7 // RUN: %s -o - | FileCheck %s --check-prefix=CHECK-AIX_SMALL_LOCALEXEC_TLS
9 // RUN: not %clang -target powerpc-unknown-aix -maix-small-local-exec-tls \
10 // RUN: -fsyntax-only %s 2>&1 | FileCheck --check-prefix=CHECK-UNSUPPORTED-AIX32 %s
11 // RUN: not %clang -target powerpc64le-unknown-linux-gnu -maix-small-local-exec-tls \
12 // RUN: -fsyntax-only %s 2>&1 | FileCheck --check-prefix=CHECK-UNSUPPORTED-LINUX %s
13 // RUN: not %clang -target powerpc64-unknown-linux-gnu -maix-small-local-exec-tls \
14 // RUN: -fsyntax-only %s 2>&1 | FileCheck --check-prefix=CHECK-UNSUPPORTED-LINUX %s
16 int test(void) {
17 return 0;
20 // CHECK: test() #0 {
21 // CHECK: attributes #0 = {
22 // CHECK-SAME: -aix-small-local-exec-tls
24 // CHECK-UNSUPPORTED-AIX32: option '-maix-small-local-exec-tls' cannot be specified on this target
25 // CHECK-UNSUPPORTED-LINUX: option '-maix-small-local-exec-tls' cannot be specified on this target
27 // CHECK-AIX_SMALL_LOCALEXEC_TLS: test() #0 {
28 // CHECK-AIX_SMALL_LOCALEXEC_TLS: attributes #0 = {
29 // CHECK-AIX_SMALL_LOCALEXEC_TLS-SAME: +aix-small-local-exec-tls