From 7c790378795ad24abe9b7a927eefc06e136be89e Mon Sep 17 00:00:00 2001 From: Chao-ying Fu Date: Mon, 14 Oct 2013 19:02:00 +0000 Subject: 2013-10-14 Chao-ying Fu * 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. --- ld/testsuite/ChangeLog | 11 +++++++++++ ld/testsuite/ld-mips-elf/attr-gnu-8-0.s | 1 + ld/testsuite/ld-mips-elf/attr-gnu-8-00.d | 6 ++++++ ld/testsuite/ld-mips-elf/attr-gnu-8-01.d | 9 +++++++++ ld/testsuite/ld-mips-elf/attr-gnu-8-02.d | 9 +++++++++ ld/testsuite/ld-mips-elf/attr-gnu-8-1.s | 1 + ld/testsuite/ld-mips-elf/attr-gnu-8-10.d | 9 +++++++++ ld/testsuite/ld-mips-elf/attr-gnu-8-11.d | 9 +++++++++ ld/testsuite/ld-mips-elf/attr-gnu-8-12.d | 5 +++++ ld/testsuite/ld-mips-elf/attr-gnu-8-2.s | 1 + ld/testsuite/ld-mips-elf/attr-gnu-8-20.d | 9 +++++++++ ld/testsuite/ld-mips-elf/attr-gnu-8-21.d | 5 +++++ ld/testsuite/ld-mips-elf/attr-gnu-8-22.d | 9 +++++++++ ld/testsuite/ld-mips-elf/mips-elf.exp | 10 ++++++++++ 14 files changed, 94 insertions(+) create mode 100644 ld/testsuite/ld-mips-elf/attr-gnu-8-0.s create mode 100644 ld/testsuite/ld-mips-elf/attr-gnu-8-00.d create mode 100644 ld/testsuite/ld-mips-elf/attr-gnu-8-01.d create mode 100644 ld/testsuite/ld-mips-elf/attr-gnu-8-02.d create mode 100644 ld/testsuite/ld-mips-elf/attr-gnu-8-1.s create mode 100644 ld/testsuite/ld-mips-elf/attr-gnu-8-10.d create mode 100644 ld/testsuite/ld-mips-elf/attr-gnu-8-11.d create mode 100644 ld/testsuite/ld-mips-elf/attr-gnu-8-12.d create mode 100644 ld/testsuite/ld-mips-elf/attr-gnu-8-2.s create mode 100644 ld/testsuite/ld-mips-elf/attr-gnu-8-20.d create mode 100644 ld/testsuite/ld-mips-elf/attr-gnu-8-21.d create mode 100644 ld/testsuite/ld-mips-elf/attr-gnu-8-22.d (limited to 'ld') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index a8060a3..eed5226 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2013-10-14 Chao-ying Fu + + * 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 * 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 index 0000000..b28c578 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-0.s @@ -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 index 0000000..5ee34a1 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-00.d @@ -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 index 0000000..2d44dfe --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-01.d @@ -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 index 0000000..e873d44 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-02.d @@ -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 index 0000000..81c7b7f --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-1.s @@ -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 index 0000000..f0e9125 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-10.d @@ -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 index 0000000..50d518f --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-11.d @@ -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 index 0000000..b5392f3 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-12.d @@ -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 index 0000000..0f18f5f --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-2.s @@ -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 index 0000000..268d670 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-20.d @@ -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 index 0000000..0222f03 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-21.d @@ -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 index 0000000..b781150 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-22.d @@ -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\) diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp index 988b64b..a66a289 100644 --- a/ld/testsuite/ld-mips-elf/mips-elf.exp +++ b/ld/testsuite/ld-mips-elf/mips-elf.exp @@ -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" -- cgit v1.1