2013-10-14 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
authorChao-ying Fu <fu@mips.com>
Mon, 14 Oct 2013 19:02:00 +0000 (19:02 +0000)
committerChao-ying Fu <fu@mips.com>
Mon, 14 Oct 2013 19:02:00 +0000 (19:02 +0000)
* ld-mips-elf/attr-gnu-8-0.s, ld-mips-elf/attr-gnu-8-1.s,
ld-mips-elf/attr-gnu-8-2.s,
ld-mips-elf/attr-gnu-8-00.d, ld-mips-elf/attr-gnu-8-01.d,
ld-mips-elf/attr-gnu-8-02.d, ld-mips-elf/attr-gnu-8-10.d,
ld-mips-elf/attr-gnu-8-11.d, ld-mips-elf/attr-gnu-8-12.d,
ld-mips-elf/attr-gnu-8-20.d, ld-mips-elf/attr-gnu-8-21.d,
ld-mips-elf/attr-gnu-8-22.d: New.
* ld-mips-elf/mips-elf.exp: Run new tests.

14 files changed:
ld/testsuite/ChangeLog
ld/testsuite/ld-mips-elf/attr-gnu-8-0.s [new file with mode: 0644]
ld/testsuite/ld-mips-elf/attr-gnu-8-00.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/attr-gnu-8-01.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/attr-gnu-8-02.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/attr-gnu-8-1.s [new file with mode: 0644]
ld/testsuite/ld-mips-elf/attr-gnu-8-10.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/attr-gnu-8-11.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/attr-gnu-8-12.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/attr-gnu-8-2.s [new file with mode: 0644]
ld/testsuite/ld-mips-elf/attr-gnu-8-20.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/attr-gnu-8-21.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/attr-gnu-8-22.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/mips-elf.exp

index a8060a3eea9960f456c7ddc2a2cff35d2825a5d1..eed5226a5744370a219d09c1276181c1471d0e88 100644 (file)
@@ -1,3 +1,14 @@
+2013-10-14  Chao-ying Fu  <Chao-ying.Fu@imgtec.com>
+
+       * ld-mips-elf/attr-gnu-8-0.s, ld-mips-elf/attr-gnu-8-1.s,
+       ld-mips-elf/attr-gnu-8-2.s,
+       ld-mips-elf/attr-gnu-8-00.d, ld-mips-elf/attr-gnu-8-01.d,
+       ld-mips-elf/attr-gnu-8-02.d, ld-mips-elf/attr-gnu-8-10.d,
+       ld-mips-elf/attr-gnu-8-11.d, ld-mips-elf/attr-gnu-8-12.d,
+       ld-mips-elf/attr-gnu-8-20.d, ld-mips-elf/attr-gnu-8-21.d,
+       ld-mips-elf/attr-gnu-8-22.d: New.
+       * ld-mips-elf/mips-elf.exp: Run new tests.
+
 2013-10-13  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * lib/ld-lib.exp (default_ld_compile): Add a -I option for the source
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-0.s b/ld/testsuite/ld-mips-elf/attr-gnu-8-0.s
new file mode 100644 (file)
index 0000000..b28c578
--- /dev/null
@@ -0,0 +1 @@
+.gnu_attribute 8,0
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-00.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-00.d
new file mode 100644 (file)
index 0000000..5ee34a1
--- /dev/null
@@ -0,0 +1,6 @@
+#source: attr-gnu-8-0.s
+#source: attr-gnu-8-0.s
+#ld: -r
+#readelf: -A
+#target: mips*-*-*
+
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-01.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-01.d
new file mode 100644 (file)
index 0000000..2d44dfe
--- /dev/null
@@ -0,0 +1,9 @@
+#source: attr-gnu-8-0.s
+#source: attr-gnu-8-1.s
+#ld: -r
+#readelf: -A
+#target: mips*-*-*
+
+Attribute Section: gnu
+File Attributes
+  Tag_GNU_MIPS_ABI_MSA: 128-bit MSA
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-02.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-02.d
new file mode 100644 (file)
index 0000000..e873d44
--- /dev/null
@@ -0,0 +1,9 @@
+#source: attr-gnu-8-0.s
+#source: attr-gnu-8-2.s
+#ld: -r
+#readelf: -A
+#target: mips*-*-*
+
+Attribute Section: gnu
+File Attributes
+  Tag_GNU_MIPS_ABI_MSA: \?\?\? \(2\)
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-1.s b/ld/testsuite/ld-mips-elf/attr-gnu-8-1.s
new file mode 100644 (file)
index 0000000..81c7b7f
--- /dev/null
@@ -0,0 +1 @@
+.gnu_attribute 8,1
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-10.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-10.d
new file mode 100644 (file)
index 0000000..f0e9125
--- /dev/null
@@ -0,0 +1,9 @@
+#source: attr-gnu-8-1.s
+#source: attr-gnu-8-0.s
+#ld: -r
+#readelf: -A
+#target: mips*-*-*
+
+Attribute Section: gnu
+File Attributes
+  Tag_GNU_MIPS_ABI_MSA: 128-bit MSA
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-11.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-11.d
new file mode 100644 (file)
index 0000000..50d518f
--- /dev/null
@@ -0,0 +1,9 @@
+#source: attr-gnu-8-1.s
+#source: attr-gnu-8-1.s
+#ld: -r
+#readelf: -A
+#target: mips*-*-*
+
+Attribute Section: gnu
+File Attributes
+  Tag_GNU_MIPS_ABI_MSA: 128-bit MSA
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-12.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-12.d
new file mode 100644 (file)
index 0000000..b5392f3
--- /dev/null
@@ -0,0 +1,5 @@
+#source: attr-gnu-8-1.s
+#source: attr-gnu-8-2.s
+#ld: -r
+#warning: Warning: .* uses -mmsa \(set by .*\), .* uses unknown MSA ABI 2
+#target: mips*-*-*
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-2.s b/ld/testsuite/ld-mips-elf/attr-gnu-8-2.s
new file mode 100644 (file)
index 0000000..0f18f5f
--- /dev/null
@@ -0,0 +1 @@
+.gnu_attribute 8,2
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-20.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-20.d
new file mode 100644 (file)
index 0000000..268d670
--- /dev/null
@@ -0,0 +1,9 @@
+#source: attr-gnu-8-2.s
+#source: attr-gnu-8-0.s
+#ld: -r
+#readelf: -A
+#target: mips*-*-*
+
+Attribute Section: gnu
+File Attributes
+  Tag_GNU_MIPS_ABI_MSA: \?\?\? \(2\)
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-21.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-21.d
new file mode 100644 (file)
index 0000000..0222f03
--- /dev/null
@@ -0,0 +1,5 @@
+#source: attr-gnu-8-2.s
+#source: attr-gnu-8-1.s
+#ld: -r
+#warning: Warning: .* uses unknown MSA ABI 2 \(set by .*\), .* uses -mmsa
+#target: mips*-*-*
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-22.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-22.d
new file mode 100644 (file)
index 0000000..b781150
--- /dev/null
@@ -0,0 +1,9 @@
+#source: attr-gnu-8-2.s
+#source: attr-gnu-8-2.s
+#ld: -r
+#readelf: -A
+#target: mips*-*-*
+
+Attribute Section: gnu
+File Attributes
+  Tag_GNU_MIPS_ABI_MSA: \?\?\? \(2\)
index 988b64b46e4d2fbef23633da1a3476213bc2f445..a66a2891ed1983492b00bd9b70fa8b06b8408cbe 100644 (file)
@@ -827,3 +827,13 @@ if { $linux_gnu } {
            n32 -1 1 umips
     }
 }
+
+run_dump_test "attr-gnu-8-00"
+run_dump_test "attr-gnu-8-01"
+run_dump_test "attr-gnu-8-02"
+run_dump_test "attr-gnu-8-10"
+run_dump_test "attr-gnu-8-11"
+run_dump_test "attr-gnu-8-12"
+run_dump_test "attr-gnu-8-20"
+run_dump_test "attr-gnu-8-21"
+run_dump_test "attr-gnu-8-22"