1# D30V relocation test 2 3 .text 4start: 5 add r2, r0, hello 6 add r4, r0, bar 7 add r4, r0, bar2 8 add r4, r0, unk 9 bra cont 10hello: .ascii "Hello World\n" 11 .align 3 12cont: jmp cont2 13 abs r2,r3 14cont2: 15 bra start || nop 16 bra.s exit 17 jmp 0 || nop 18 bsrtnz.s r1,cont 19 bsrtnz r1,cont 20 bratnz.s r1,cont 21 bratnz r1,cont 22 jmptnz.s r1,cont 23 bsrtnz.s r1, foo 24 jmptnz.s r1, unk 25 bsrtnz.s r1, unk 26 jmptnz r1, unk 27 bsrtnz r1, unk 28 bra.s foo 29 bra foo 30 bra start 31 jmp start 32 jmp start 33 jmp.s start 34 jmp.s foo 35 bra start 36 bra unknown 37 jmp unknown 38 jmp.s unknown 39 bra.s unknown 40 41 .data 42bar: .asciz "XYZZY" 43bar2: .long 0xdeadbeef 44 45 .text 46 .space 0xF00,0 47 48foo: 49 add r1,r0,r0 50 ld2w r60, @(r0,longzero) 51 add r62,r0,r0 52 bsr.s exit 53 bsr.s foo 54 bra.s cont2 55 bra.s cont2 56 bsr.s exit 57 jmp.s exit 58 jmp.s exit 59 jmp.s exit 60 bsr exit 61 jmp exit 62 63longzero: 64 .quad 0 65 66 .text 67exit: 68 jmp r62 69