aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/testsuite/gas/arc/jli-1.d25
-rw-r--r--gas/testsuite/gas/arc/jli-1.s11
-rw-r--r--gas/testsuite/gas/arc/taux.d1
4 files changed, 43 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index dd6a34f..d247a5b 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2017-07-19 Claudiu Zissulescu <claziss@synopsys.com>
+
+ * testsuite/gas/arc/jli-1.d: New file.
+ * testsuite/gas/arc/jli-1.s: Likewise.
+ * testsuite/gas/arc/taux.d: Update for jli_base.
+
2017-07-19 Tristan Gingold <gingold@adacore.com>
* as.c (start_sbrk): Remove.
diff --git a/gas/testsuite/gas/arc/jli-1.d b/gas/testsuite/gas/arc/jli-1.d
new file mode 100644
index 0000000..10550a2
--- /dev/null
+++ b/gas/testsuite/gas/arc/jli-1.d
@@ -0,0 +1,25 @@
+#as:
+#objdump: -Dr
+
+.*: +file format .*
+
+
+Disassembly of section .group:
+
+00000000 <jlitab.foo>:
+ 0: 0[10] 00 00 0[01] .word 0x00000001
+ 4: 0[60] 00 00 0[06] .word 0x00000006
+
+Disassembly of section .text:
+
+00000000 <.text>:
+ 0: 5800 jli_s 0
+ 0: R_ARC_JLI_SECTOFF __jli.foo
+
+Disassembly of section .jlitab:
+
+00000000 <__jli.foo>:
+ 0: 0001 0000 b 0 <foo>
+ 0: R_ARC_S25H_PCREL foo
+
+#...
diff --git a/gas/testsuite/gas/arc/jli-1.s b/gas/testsuite/gas/arc/jli-1.s
new file mode 100644
index 0000000..6890147
--- /dev/null
+++ b/gas/testsuite/gas/arc/jli-1.s
@@ -0,0 +1,11 @@
+;;; Test basic JLI relocs and constructs.
+
+ .cpu em4
+
+ jli_s __jli.foo ; Generates R_ARC_JLI_SECTOFF
+
+ .section .jlitab,"axG",%progbits,jlitab.foo,comdat
+ .align 4
+__jli.foo:
+ .weak __jli.foo
+ b @foo
diff --git a/gas/testsuite/gas/arc/taux.d b/gas/testsuite/gas/arc/taux.d
index 10f50ee..6303146 100644
--- a/gas/testsuite/gas/arc/taux.d
+++ b/gas/testsuite/gas/arc/taux.d
@@ -16,6 +16,7 @@
.* U d2l
.* U dpfp_status
.* U fp_status
+.* U jli_base
.* mx0
.* mx1
.* my0