Commit | Line | Data |
---|---|---|
d36775db HPN |
1 | ; Check that non-PIC TLS 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 | sub.d .:GD,r1 | |
7 | add.d extsym2:GD,r9 | |
8 | move.d [r3+extsym:TPOFF],r10 | |
9 | move.w extsym14:TPOFF16+77,r10 | |
10 | ||
11 | ; Other for GAS valid operands (some with questionable PIC semantics). | |
12 | sub.d extsym4:GD+42,r9 | |
13 | sub.d extsym4:GD-96,r3 | |
14 | move.d [r7=r3+extsym10:GD-330],r13 | |
15 | move.d [r11+extsym14:TPOFF16-256],r9 | |
16 | add.d [r10+extsym3:TPOFF+56],r7,r8 |