brintos

brintos / llvm-project-archived public Read only

0
0
Text · 993 B · 36f8bc7 Raw
23 lines · plain
1; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -mattr=+aix-shared-lib-tls-model-opt \2; RUN:   -ppc-asm-full-reg-names < %s | FileCheck %s3; 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-SUPPORTED6; 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-SUPPORTED9 10define dso_local signext i32 @testNoIRAttr() {11entry:12  ret i32 013}14 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.17 18; Make sure that the test was actually compiled successfully after using the19; aix-shared-lib-tls-model-opt attribute.20; CHECK-LABEL: testNoIRAttr:21; CHECK:        li r3, 022; CHECK-NEXT:   blr23