aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-or1k/offsets1.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-or1k/offsets1.s')
-rw-r--r--ld/testsuite/ld-or1k/offsets1.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-or1k/offsets1.s b/ld/testsuite/ld-or1k/offsets1.s
new file mode 100644
index 0000000..94cb068
--- /dev/null
+++ b/ld/testsuite/ld-or1k/offsets1.s
@@ -0,0 +1,14 @@
+ .data
+ .p2align 16
+x: .skip 10000
+
+ .text
+ .globl _start
+_start:
+
+ .set i, 0
+.rept 100
+ l.movhi r3, ha(x+i)
+ l.sw lo(x+i)(r3), r0
+ .set i, i+1000
+.endr