Upload Tizen:Base source
[external/binutils.git] / gas / testsuite / gas / cris / rd-tls-2.s
1 ; Check that TLS PIC operands get their right relocation type.
2 ; First some expected uses, similar to what GCC will emit.
3         .text
4         .syntax no_register_prefix
5 start:
6         move.d [r3+extsym:TPOFFGOT],r10
7         move.d extsym5:TPOFFGOT,r8
8         move.w extsym9:TPOFFGOT16,r8
9         move.d [r3+extsym:GDGOTREL],r10
10         move.d [r13+extsym13:TPOFFGOT16],r10
11         move.w extsym14:GDGOTREL16,r10
12         sub.d extsym4:DTPREL+22,r9
13         sub.w extsym4:DTPREL16-86,r3
14
15 ; Other for GAS valid operands (some with questionable PIC semantics).
16         sub.d [r3+extsym3:TPOFFGOT],r4,r10
17         sub.d extsym4:GDGOTREL+42,r9
18         sub.d extsym4:TPOFFGOT-96,r3
19         add.d [r10+extsym3:TPOFFGOT+56],r7,r8
20         move.d [r5+extsym6:TPOFFGOT+10],r1
21         add.d [r10+extsym3:TPOFFGOT-560],r4,r8
22         move.d [r5+extsym6:TPOFFGOT-110],r12
23         move.d [r9=r5+extsym6:TPOFFGOT-220],r12
24         sub.d [r12+extsym3:TPOFFGOT16-156],r9,r8
25         move.d [r11+extsym14:GDGOTREL16-256],r9
26         add.d [r10+extsym3:GDGOTREL+56],r7,r8