Re-add support for lbarx, lharx, stbcx. and sthcx. insns back to the E6500 cpu.
[binutils-gdb.git] / ld / testsuite / ld-aarch64 / tls-desc-ie.s
blob93fd71c09c673eceadc74e29aa930753ebe807b6
1 .global v1
2 .global v2
3 .section .tdata,"awT",%progbits
4 v1:
5 .word 1
7 .text
9 # This GD access does not relax. It consumes a double GOT slot.
11 adrp x0, :tlsgd:v2
12 add x0, x0, :tlsgd_lo12:v2
13 bl __tls_get_addr
14 nop
16 # Test the combination of a TLSDESC-GD and IE access to the same
17 # symbol. We expect the TLSDESC-GD to relax to IE.
19 adrp x0, :tlsdesc:v1
20 ldr x1, [x0, #:tlsdesc_lo12:v1]
21 add x0, x0, :tlsdesc_lo12:v1
22 .tlsdesccall v1
23 blr x1
24 mrs x1, tpidr_el0
25 add x0, x1, x0
27 mrs x2, tpidr_el0
28 adrp x0, :gottprel:v1
29 ldr x0, [x0, #:gottprel_lo12:v1]
30 add x0, x2, x0
31 ldr w0, [x0]
32 add w0, w1, w0