1 ; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -mattr=+aix-shared-lib-tls-model-opt \
2 ; RUN: -ppc-asm-full-reg-names < %s | FileCheck %s
3 ; RUN: not llc -mtriple powerpc-ibm-aix-xcoff -mattr=+aix-shared-lib-tls-model-opt \
4 ; RUN: -ppc-asm-full-reg-names < %s 2>&1 | \
5 ; RUN: FileCheck %s --check-prefix=CHECK-NOT-SUPPORTED
6 ; RUN: not llc -mtriple powerpc64le-unknown-linux-gnu -mattr=+aix-shared-lib-tls-model-opt \
7 ; RUN: -ppc-asm-full-reg-names < %s 2>&1 | \
8 ; RUN: FileCheck %s --check-prefix=CHECK-NOT-SUPPORTED
10 define dso_local signext i32 @testNoIRAttr() {
15 ; Check that the aix-shared-lib-tls-model-opt attribute is not supported on Linux and AIX (32-bit).
16 ; CHECK-NOT-SUPPORTED: The aix-shared-lib-tls-model-opt attribute is only supported on AIX in 64-bit mode.
18 ; Make sure that the test was actually compiled successfully after using the
19 ; aix-shared-lib-tls-model-opt attribute.
20 ; CHECK-LABEL: testNoIRAttr: