aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/tls-relax-large-desc-le.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-aarch64/tls-relax-large-desc-le.s')
-rw-r--r--ld/testsuite/ld-aarch64/tls-relax-large-desc-le.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/tls-relax-large-desc-le.s b/ld/testsuite/ld-aarch64/tls-relax-large-desc-le.s
new file mode 100644
index 0000000..ff27c4e
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/tls-relax-large-desc-le.s
@@ -0,0 +1,20 @@
+ .section .tdata
+var:
+ .word 2
+
+ .text
+test:
+ ldr x1, .Lgot
+ adr x2, .Lgot
+ add x18, x1, x2
+
+ movz x0, #:tlsdesc_off_g1:var
+ movk x0, #:tlsdesc_off_g0_nc:var
+ .tlsdescldr var
+ ldr x1, [x18, x0]
+ .tlsdescadd var
+ add x0, x18, x0
+ .tlsdesccall var
+ blr x1
+
+.Lgot: .xword _GLOBAL_OFFSET_TABLE_ - .