1; RUN: llc < %s -mtriple=powerpc -mattr=+secure-plt -relocation-model=pic | FileCheck -check-prefix=SECURE-PLT-TLS %s 2 3@a = thread_local local_unnamed_addr global i32 6, align 4 4define i32 @main() local_unnamed_addr #0 { 5entry: 6 %0 = load i32, i32* @a, align 4 7 ret i32 %0 8} 9 10 11!llvm.module.flags = !{!0} 12!0 = !{i32 7, !"PIC Level", i32 1} 13 14; SECURE-PLT-TLS: mflr 30 15; SECURE-PLT-TLS-NEXT: addis 30, 30, _GLOBAL_OFFSET_TABLE_-.L0$pb@ha 16; SECURE-PLT-TLS-NEXT: addi 30, 30, _GLOBAL_OFFSET_TABLE_-.L0$pb@l 17; SECURE-PLT-TLS: addi 3, 30, a@got@tlsgd 18; SECURE-PLT-TLS: bl __tls_get_addr(a@tlsgd)@PLT{{$}} 19