Re-add support for lbarx, lharx, stbcx. and sthcx. insns back to the E6500 cpu.
[binutils-gdb.git] / ld / testsuite / ld-tic6x / shlib-1.s
blobcb065a2910f4da234dc8c1f246b40ae35839fc18
1 .text
2 .nocmp
3 .align 2
4 .hidden sub1
5 .type sub1, @function
6 sub1:
7 ret .s2 B3
8 nop 5
10 .global sub0
11 .type sub0, @function
12 sub0:
13 sub .d2 B15, 16, B15
14 stw .d2t2 B3, *+B15(12)
15 stw .d2t2 B14, *+B15(16)
16 ldw .d2t2 *+B14($DSBT_index(__c6xabi_DSBT_BASE)), B14
17 call .s2 (sub)
18 call .s2 (sub0)
19 call .s2 (sub1)
20 .L2:
21 ldw .d2t2 *+B15(12), B3
22 ldw .d2t2 *+B15(16), B14
23 addk .s2 16, B15
24 nop 3
25 ret .s2 B3
26 nop 5
27 .size sub0, .-sub0
29 .global a
30 .section .neardata,"aw",@progbits
31 .align 2
32 .type a, @object
33 .size a, 4
35 .long sub0
36 .weak g1
37 .global g2
38 .type g2, @object
39 .size g2, 4
40 g2:
41 .long g1
43 .hidden c
44 .scomm c,4,4