aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-m68hc11/xgate1.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-m68hc11/xgate1.s')
-rw-r--r--ld/testsuite/ld-m68hc11/xgate1.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-m68hc11/xgate1.s b/ld/testsuite/ld-m68hc11/xgate1.s
new file mode 100644
index 0000000..26baf67
--- /dev/null
+++ b/ld/testsuite/ld-m68hc11/xgate1.s
@@ -0,0 +1,18 @@
+;;; Test branches and branch relocate with XGATE
+;;;
+ .sect .text
+ .globl _start
+_start:
+
+ ldw r1,#var1 ; expands to two IMM8 %hi,%lo relocate
+ tst r1
+ beq linked_ad1
+ tst r2
+ beq the_end
+ bra linked_ad2
+
+the_end:
+ rts
+
+ .sect .data
+var1: fdb 0x1234