]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - gas/testsuite/gas/cr16/pic1.s
Merge commit 'upstream/2.20'
[msp430-binutils.git] / gas / testsuite / gas / cr16 / pic1.s
diff --git a/gas/testsuite/gas/cr16/pic1.s b/gas/testsuite/gas/cr16/pic1.s
new file mode 100644 (file)
index 0000000..23f0cc8
--- /dev/null
@@ -0,0 +1,23 @@
+       .section .text
+       .globl  _text_pointer
+       .section        .data.rel
+       .type   _text_pointer, @object
+_text_pointer:
+       .long   _text_address@c
+       .section        .text
+       .globl  _main
+       .type   _main, @function
+_main:
+       ######################
+       # Data symbols
+       ######################
+       movd    $_text_pointer@l, (r1,r0)
+       ######################
+       # Code symbol with cpic
+       ######################
+       movd    $_text_address_1@cpic, (r1,r0)
+
+       .globl  _text_address_1
+       .type   _text_address_1, @function
+_text_address_1:
+       jump    (ra)