Re-add support for lbarx, lharx, stbcx. and sthcx. insns back to the E6500 cpu.
[binutils-gdb.git] / ld / testsuite / ld-tic6x / shlib-2.s
blob3d786dd298bed62c3cde2522555a96f2d2fcfa9c
1 .weak a
2 .weak b
4 .text
5 .nocmp
6 .align 2
7 .global sub
8 .type sub, @function
9 sub:
10 sub .d2 B15, 16, B15
11 stw .d2t1 A4, *+B15(12)
12 ldw .d2t1 *+B15(12), A0
13 nop 4
14 add .d1 A0, 10, A0
15 mv .d1 A0, A4
16 add .d2 B15, 16, B15
17 ret .s2 B3
18 ldw .d2t2 *+B14($GOT(a)), B6
19 ldw .d2t2 *+B14($GOT(b)), B7
20 ldw .d2t2 *+B14($GOT(c)), B8
21 ldw .d2t2 *+B14(c), B9
22 nop 1
23 .size sub, .-sub