]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - gas/testsuite/gas/xtensa/err-pcrel.s
Imported binutils-2.20
[msp430-binutils.git] / gas / testsuite / gas / xtensa / err-pcrel.s
diff --git a/gas/testsuite/gas/xtensa/err-pcrel.s b/gas/testsuite/gas/xtensa/err-pcrel.s
new file mode 100644 (file)
index 0000000..5b32538
--- /dev/null
@@ -0,0 +1,6 @@
+# { dg-do assemble { target xtensa*-*-* } }
+       .text
+       .global foo
+       beqz    a2, 1f@pcrel    # { dg-error "relocation not allowed" "" }
+1:     movi    a2, foo@pcrel   # { dg-error "relocation not allowed" "" }
+foo:   .short  foo@pcrel       # { dg-error "relocations do not fit" "" }