X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=gas%2Ftestsuite%2Fgas%2Fcr16%2Fpic1.s;fp=gas%2Ftestsuite%2Fgas%2Fcr16%2Fpic1.s;h=23f0cc8ae1fd1a7cfc5f9ae0745ede1d08e141f1;hp=0000000000000000000000000000000000000000;hb=88750007d7869f178f0ba528f41efd3b74c424cf;hpb=6df9443a374e2b81278c61b8afc0a1eef7db280b diff --git a/gas/testsuite/gas/cr16/pic1.s b/gas/testsuite/gas/cr16/pic1.s new file mode 100644 index 0000000..23f0cc8 --- /dev/null +++ b/gas/testsuite/gas/cr16/pic1.s @@ -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)