]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - gas/testsuite/gas/xtensa/pcrel.d
Merge commit 'upstream/2.20'
[msp430-binutils.git] / gas / testsuite / gas / xtensa / pcrel.d
diff --git a/gas/testsuite/gas/xtensa/pcrel.d b/gas/testsuite/gas/xtensa/pcrel.d
new file mode 100644 (file)
index 0000000..0e5f757
--- /dev/null
@@ -0,0 +1,19 @@
+#as: 
+#objdump: -r -j .literal -j .text
+#name: pc-relative relocs
+
+.*: +file format .*xtensa.*
+
+RELOCATION RECORDS FOR \[\.literal\]:
+OFFSET   TYPE              VALUE 
+00000000 R_XTENSA_32_PCREL  foo
+
+
+RELOCATION RECORDS FOR \[\.text\]:
+OFFSET   TYPE              VALUE 
+00000003 R_XTENSA_SLOT0_OP  \.literal
+00000006 R_XTENSA_32_PCREL  foo
+0000000a R_XTENSA_32_PCREL  \.text\+0x00000003
+0000000e R_XTENSA_32_PCREL  \.text\+0x00000006
+
+