summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/compressed-plt-1c.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-mips-elf/compressed-plt-1c.s')
-rw-r--r--ld/testsuite/ld-mips-elf/compressed-plt-1c.s24
1 files changed, 24 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/compressed-plt-1c.s b/ld/testsuite/ld-mips-elf/compressed-plt-1c.s
new file mode 100644
index 0000000000..651424bae0
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/compressed-plt-1c.s
@@ -0,0 +1,24 @@
+# Define a function with all direct (%lo) references.
+
+ .abicalls
+ .option pic0
+
+ .include "compressed-plt-1.s"
+
+ .macro test_one, name, types
+ .if (\types) & LO
+ li $2,%lo(\name)
+ .endif
+ .endm
+
+ .if micromips
+ .set micromips
+ .endif
+
+ .section .text.c, "ax", @progbits
+ .globl testlo
+ .ent testlo
+ .set noreorder
+testlo:
+ test_all
+ .end testlo