aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-aarch64/aarch64-elf.exp2
-rw-r--r--ld/testsuite/ld-aarch64/tls-relax-ld-le-small-ilp32.d14
-rw-r--r--ld/testsuite/ld-aarch64/tls-relax-ld-le-tiny-ilp32.d13
3 files changed, 29 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/aarch64-elf.exp b/ld/testsuite/ld-aarch64/aarch64-elf.exp
index de158fe..8fba231 100644
--- a/ld/testsuite/ld-aarch64/aarch64-elf.exp
+++ b/ld/testsuite/ld-aarch64/aarch64-elf.exp
@@ -228,7 +228,9 @@ run_dump_test_lp64 "tls-relax-large-desc-le-be"
run_dump_test "tls-relax-gdesc-ie"
run_dump_test "tls-relax-ie-le"
run_dump_test "tls-relax-ld-le-small"
+run_dump_test "tls-relax-ld-le-small-ilp32"
run_dump_test "tls-relax-ld-le-tiny"
+run_dump_test "tls-relax-ld-le-tiny-ilp32"
run_dump_test "tls-desc-ie"
run_dump_test "tls-relax-gdesc-ie-2"
run_dump_test "tls-relax-gdesc-le-2"
diff --git a/ld/testsuite/ld-aarch64/tls-relax-ld-le-small-ilp32.d b/ld/testsuite/ld-aarch64/tls-relax-ld-le-small-ilp32.d
new file mode 100644
index 0000000..0f86d93
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/tls-relax-ld-le-small-ilp32.d
@@ -0,0 +1,14 @@
+#source: tls-relax-ld-le-small.s
+#as: -mabi=ilp32
+#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
+#objdump: -dr
+#...
+ +10000: 910003fd mov x29, sp
+ +10004: d53bd040 mrs x0, tpidr_el0
+ +10008: 11002000 add w0, w0, #0x8
+ +1000c: d503201f nop
+ +10010: d503201f nop
+ +10014: 91400001 add x1, x0, #0x0, lsl #12
+ +10018: 91000021 add x1, x1, #0x0
+ +1001c: 90000000 adrp x0, 10000 <.*>
+ +10020: d65f03c0 ret
diff --git a/ld/testsuite/ld-aarch64/tls-relax-ld-le-tiny-ilp32.d b/ld/testsuite/ld-aarch64/tls-relax-ld-le-tiny-ilp32.d
new file mode 100644
index 0000000..e2a4250
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/tls-relax-ld-le-tiny-ilp32.d
@@ -0,0 +1,13 @@
+#source: tls-relax-ld-le-tiny.s
+#as: -mabi=ilp32
+#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
+#objdump: -dr
+#...
+ +10000: 910003fd mov x29, sp
+ +10004: d53bd040 mrs x0, tpidr_el0
+ +10008: 11002000 add w0, w0, #0x8
+ +1000c: d503201f nop
+ +10010: 91400001 add x1, x0, #0x0, lsl #12
+ +10014: 91000021 add x1, x1, #0x0
+ +10018: 90000000 adrp x0, 10000 <main>
+ +1001c: d65f03c0 ret