aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/undef-tls.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-aarch64/undef-tls.s')
-rw-r--r--ld/testsuite/ld-aarch64/undef-tls.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/undef-tls.s b/ld/testsuite/ld-aarch64/undef-tls.s
new file mode 100644
index 0000000..6d57afb
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/undef-tls.s
@@ -0,0 +1,13 @@
+ .global get
+ .type get, %function
+get:
+.LFB0:
+ mrs x0, tpidr_el0
+ add x0, x0, #:tprel_hi12:tls, lsl #12
+ add x0, x0, #:tprel_lo12_nc:tls
+ add x0, x0, #:dtprel_hi12:dtl
+ add x0, x0, #:dtprel_lo12:dtl
+ ret
+.LFE0:
+ .size get, .-get
+