]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - gas/testsuite/gas/cris/tls-err-3.s
Imported binutils-2.20
[msp430-binutils.git] / gas / testsuite / gas / cris / tls-err-3.s
diff --git a/gas/testsuite/gas/cris/tls-err-3.s b/gas/testsuite/gas/cris/tls-err-3.s
new file mode 100644 (file)
index 0000000..cbc2b5d
--- /dev/null
@@ -0,0 +1,14 @@
+; Check that TLS PIC suffixes aren't accepted when non-PIC.
+
+; { dg-do assemble }
+; { dg-options "--no-underscore --em=criself" }
+
+ .syntax no_register_prefix
+ .text
+start:
+ move.d extsym2:GDGOTREL,r5    ; { dg-error "operand" }
+ move.w extsym2:GDGOTREL16,r5  ; { dg-error "operand" }
+ move.d extsym1:DTPREL,r4      ; { dg-error "operand" }
+ move.w extsym3:DTPREL16,r6    ; { dg-error "operand" }
+ move.w extsym13:TPOFFGOT16,r10        ; { dg-error "operand" }
+ move extsym4:TPOFFGOT,srp     ; { dg-error "operand" }