aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-riscv-elf/code-model-relax-medlow-01.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-riscv-elf/code-model-relax-medlow-01.d')
-rw-r--r--ld/testsuite/ld-riscv-elf/code-model-relax-medlow-01.d13
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ld-riscv-elf/code-model-relax-medlow-01.d b/ld/testsuite/ld-riscv-elf/code-model-relax-medlow-01.d
new file mode 100644
index 0000000..eea2f7d
--- /dev/null
+++ b/ld/testsuite/ld-riscv-elf/code-model-relax-medlow-01.d
@@ -0,0 +1,13 @@
+#source: code-model.s
+#as: -march=rv64i -mabi=lp64 --defsym __medlow__=1
+#ld: -Tcode-model-01.ld -melf64lriscv --relax
+#objdump: -d -Mno-aliases
+
+.*:[ ]+file format .*
+
+
+Disassembly of section .text:
+
+0+10000 <_start>:
+[ ]+[0-9a-f]+:[ ]+[0-9a-f]+[ ]+addi[ ]+t0,gp,\-[0-9]+ # [0-9a-f]+ <symbolL>
+[ ]+[0-9a-f]+:[ ]+[0-9a-f]+[ ]+addi[ ]+t0,gp,\-[0-9]+ # [0-9a-f]+ <symbolG>