aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-kvx/limit-goto.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-kvx/limit-goto.s')
-rw-r--r--ld/testsuite/ld-kvx/limit-goto.s22
1 files changed, 22 insertions, 0 deletions
diff --git a/ld/testsuite/ld-kvx/limit-goto.s b/ld/testsuite/ld-kvx/limit-goto.s
new file mode 100644
index 0000000..f902114
--- /dev/null
+++ b/ld/testsuite/ld-kvx/limit-goto.s
@@ -0,0 +1,22 @@
+# Test maximum encoding range of call
+
+ .global _start
+ .global bar
+
+# We will place the section .text at 0x0000.
+
+ .text
+
+_start:
+ goto bar
+ ;;
+ ret
+ ;;
+
+# We will place the section .foo at 0x10000000
+
+ .section .foo, "xa"
+ .type bar, @function
+bar:
+ ret
+ ;;