1 // RUN: %clang -c -o %t %s
2 // RUN: %llvm_jitlink %t
4 // Test that basic ELF TLS work by adding together TLSs with values
5 // 0, 1, and -1, and returning the result (0 for success). This setup
6 // tests both zero-initialized (.tbss) and non-zero-initialized
15 stp x29, x30, [sp, #-16]!
18 ldr x1, [x0, :tlsdesc_lo12:x]
19 add x0, x0, :tlsdesc_lo12:x
25 ldr x1, [x0, :tlsdesc_lo12:y]
26 add x0, x0, :tlsdesc_lo12:y
32 ldr x1, [x0, :tlsdesc_lo12:z]
33 add x0, x0, :tlsdesc_lo12:z
38 ldp x29, x30, [sp], #16
41 .size main, .Lfunc_end0-main
44 .section .tdata,"awT",@progbits
52 .section .tbss,"awT",@nobits
60 .section .tdata,"awT",@progbits