aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-loongarch-elf/desc-relax.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-loongarch-elf/desc-relax.s')
-rw-r--r--ld/testsuite/ld-loongarch-elf/desc-relax.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-loongarch-elf/desc-relax.s b/ld/testsuite/ld-loongarch-elf/desc-relax.s
new file mode 100644
index 0000000..4a993a5
--- /dev/null
+++ b/ld/testsuite/ld-loongarch-elf/desc-relax.s
@@ -0,0 +1,5 @@
+.L1:
+# A UND symbol but no more than the range of pcaddi,
+# do pcalau12i + addi => pcaddi
+la.tls.desc $a0,var
+add.d $t0,$a0,$tp