diff options
Diffstat (limited to 'ld/testsuite/ld-aarch64/tls-relax-large-ie-le.s')
-rw-r--r-- | ld/testsuite/ld-aarch64/tls-relax-large-ie-le.s | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/tls-relax-large-ie-le.s b/ld/testsuite/ld-aarch64/tls-relax-large-ie-le.s new file mode 100644 index 0000000..c5c12a1 --- /dev/null +++ b/ld/testsuite/ld-aarch64/tls-relax-large-ie-le.s @@ -0,0 +1,19 @@ + .section .tdata,"awT" +x: + .word 2 +y: + .word 4 + + .text +test: + mrs x1, tpidr_el0 + + movz x6, #:gottprel_g1:x + movk x6, #:gottprel_g0_nc:x + ldr x6, [x2, x6] + add x6, x6, x1 + + movz x7, #:gottprel_g1:y + movk x7, #:gottprel_g0_nc:y + ldr x7, [x2, x7] + add x7, x7, x1 |