aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog7
-rw-r--r--ld/testsuite/ld-tic6x/attr-dsbt-0.s1
-rw-r--r--ld/testsuite/ld-tic6x/attr-dsbt-00.d10
-rw-r--r--ld/testsuite/ld-tic6x/attr-dsbt-01.d6
-rw-r--r--ld/testsuite/ld-tic6x/attr-dsbt-1.s1
-rw-r--r--ld/testsuite/ld-tic6x/attr-dsbt-10.d6
-rw-r--r--ld/testsuite/ld-tic6x/attr-dsbt-11.d11
7 files changed, 42 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index c6771a6..246deef 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2010-10-29 Bernd Schmidt <bernds@codesourcery.com>
+ Joseph Myers <joseph@codesourcery.com>
+
+ * ld-tic6x/attr-dsbt-0.s, ld-tic6x/attr-dsbt-00.d,
+ ld-tic6x/attr-dsbt-01.d, ld-tic6x/attr-dsbt-1.s,
+ ld-tic6x/attr-dsbt-10.d, ld-tic6x/attr-dsbt-11.d: New tests.
+
2010-10-28 Thomas Schwinge <thomas@schwinge.name>
* ld-scripts/script.exp: Sort all filename globs.
diff --git a/ld/testsuite/ld-tic6x/attr-dsbt-0.s b/ld/testsuite/ld-tic6x/attr-dsbt-0.s
new file mode 100644
index 0000000..abd72e3
--- /dev/null
+++ b/ld/testsuite/ld-tic6x/attr-dsbt-0.s
@@ -0,0 +1 @@
+.c6xabi_attribute Tag_ABI_DSBT, 0
diff --git a/ld/testsuite/ld-tic6x/attr-dsbt-00.d b/ld/testsuite/ld-tic6x/attr-dsbt-00.d
new file mode 100644
index 0000000..c49752d
--- /dev/null
+++ b/ld/testsuite/ld-tic6x/attr-dsbt-00.d
@@ -0,0 +1,10 @@
+#name: C6X DSBT attribute merging, 0 0
+#as: -mlittle-endian
+#ld: -r -melf32_tic6x_le
+#source: attr-dsbt-0.s
+#source: attr-dsbt-0.s
+#readelf: -A
+
+Attribute Section: c6xabi
+File Attributes
+ Tag_ISA: C674x
diff --git a/ld/testsuite/ld-tic6x/attr-dsbt-01.d b/ld/testsuite/ld-tic6x/attr-dsbt-01.d
new file mode 100644
index 0000000..5f534a7
--- /dev/null
+++ b/ld/testsuite/ld-tic6x/attr-dsbt-01.d
@@ -0,0 +1,6 @@
+#name: C6X DSBT attribute merging, 0 1
+#as: -mlittle-endian
+#ld: -r -melf32_tic6x_le
+#source: attr-dsbt-0.s
+#source: attr-dsbt-1.s
+#warning: .*differ in whether code is compiled for DSBT
diff --git a/ld/testsuite/ld-tic6x/attr-dsbt-1.s b/ld/testsuite/ld-tic6x/attr-dsbt-1.s
new file mode 100644
index 0000000..75c972e
--- /dev/null
+++ b/ld/testsuite/ld-tic6x/attr-dsbt-1.s
@@ -0,0 +1 @@
+.c6xabi_attribute Tag_ABI_DSBT, 1
diff --git a/ld/testsuite/ld-tic6x/attr-dsbt-10.d b/ld/testsuite/ld-tic6x/attr-dsbt-10.d
new file mode 100644
index 0000000..283efab
--- /dev/null
+++ b/ld/testsuite/ld-tic6x/attr-dsbt-10.d
@@ -0,0 +1,6 @@
+#name: C6X DSBT attribute merging, 1 0
+#as: -mlittle-endian
+#ld: -r -melf32_tic6x_le
+#source: attr-dsbt-1.s
+#source: attr-dsbt-0.s
+#warning: .*differ in whether code is compiled for DSBT
diff --git a/ld/testsuite/ld-tic6x/attr-dsbt-11.d b/ld/testsuite/ld-tic6x/attr-dsbt-11.d
new file mode 100644
index 0000000..d004c10
--- /dev/null
+++ b/ld/testsuite/ld-tic6x/attr-dsbt-11.d
@@ -0,0 +1,11 @@
+#name: C6X DSBT attribute merging, 1 1
+#as: -mlittle-endian
+#ld: -r -melf32_tic6x_le
+#source: attr-dsbt-1.s
+#source: attr-dsbt-1.s
+#readelf: -A
+
+Attribute Section: c6xabi
+File Attributes
+ Tag_ISA: C674x
+ Tag_ABI_DSBT: DSBT addressing used