diff options
Diffstat (limited to 'gas/testsuite/gas/cris/rd-tls-1.s')
-rw-r--r-- | gas/testsuite/gas/cris/rd-tls-1.s | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gas/testsuite/gas/cris/rd-tls-1.s b/gas/testsuite/gas/cris/rd-tls-1.s new file mode 100644 index 00000000000..05bbefa5a01 --- /dev/null +++ b/gas/testsuite/gas/cris/rd-tls-1.s @@ -0,0 +1,16 @@ +; Check that non-PIC TLS operands get their right relocation type. +; First some expected uses, similar to what GCC will emit. + .text + .syntax no_register_prefix +start: + sub.d .:GD,r1 + add.d extsym2:GD,r9 + move.d [r3+extsym:TPOFF],r10 + move.w extsym14:TPOFF16+77,r10 + +; Other for GAS valid operands (some with questionable PIC semantics). + sub.d extsym4:GD+42,r9 + sub.d extsym4:GD-96,r3 + move.d [r7=r3+extsym10:GD-330],r13 + move.d [r11+extsym14:TPOFF16-256],r9 + add.d [r10+extsym3:TPOFF+56],r7,r8 |