From 443bfd5a371633064bf251a74b27382c7774f217 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Thu, 24 Dec 2015 16:50:26 +0800 Subject: [PATCH] Add tests for gas arch autodetection on ARM 2015-12-09 Andre Vieira gas/testsuite/ * gas/arm/automatic-bw.d: New. * gas/arm/automatic-bw.s: New. * gas/arm/automatic-cbz.d: New. * gas/arm/automatic-cbz.s: New. * gas/arm/automatic-clrex.d: New. * gas/arm/automatic-clrex.s: New. * gas/arm/automatic-lda.d: New. * gas/arm/automatic-lda.s: New. * gas/arm/automatic-ldaex.d: New. * gas/arm/automatic-ldaex.s: New. * gas/arm/automatic-ldaexb.d: New. * gas/arm/automatic-ldaexb.s: New. * gas/arm/automatic-ldrex.d: New. * gas/arm/automatic-ldrex.s: New. * gas/arm/automatic-ldrexd.d: New. * gas/arm/automatic-ldrexd.s: New. * gas/arm/automatic-movw.d: New. * gas/arm/automatic-movw.s: New. * gas/arm/automatic-sdiv.d: New. * gas/arm/automatic-sdiv.s: New. * gas/arm/automatic-strexb.d: New. * gas/arm/automatic-strexb.s: New. --- gas/testsuite/ChangeLog | 25 ++++++++++++++++++++++++ gas/testsuite/gas/arm/automatic-bw.d | 8 ++++++++ gas/testsuite/gas/arm/automatic-bw.s | 3 +++ gas/testsuite/gas/arm/automatic-cbz.d | 8 ++++++++ gas/testsuite/gas/arm/automatic-cbz.s | 5 +++++ gas/testsuite/gas/arm/automatic-clrex.d | 8 ++++++++ gas/testsuite/gas/arm/automatic-clrex.s | 3 +++ gas/testsuite/gas/arm/automatic-lda.d | 9 +++++++++ gas/testsuite/gas/arm/automatic-lda.s | 3 +++ gas/testsuite/gas/arm/automatic-ldaex.d | 9 +++++++++ gas/testsuite/gas/arm/automatic-ldaex.s | 3 +++ gas/testsuite/gas/arm/automatic-ldaexb.d | 9 +++++++++ gas/testsuite/gas/arm/automatic-ldaexb.s | 3 +++ gas/testsuite/gas/arm/automatic-ldrex.d | 8 ++++++++ gas/testsuite/gas/arm/automatic-ldrex.s | 3 +++ gas/testsuite/gas/arm/automatic-ldrexd.d | 8 ++++++++ gas/testsuite/gas/arm/automatic-ldrexd.s | 3 +++ gas/testsuite/gas/arm/automatic-movw.d | 8 ++++++++ gas/testsuite/gas/arm/automatic-movw.s | 3 +++ gas/testsuite/gas/arm/automatic-sdiv.d | 9 +++++++++ gas/testsuite/gas/arm/automatic-sdiv.s | 3 +++ gas/testsuite/gas/arm/automatic-strexb.d | 8 ++++++++ gas/testsuite/gas/arm/automatic-strexb.s | 3 +++ 23 files changed, 152 insertions(+) create mode 100644 gas/testsuite/gas/arm/automatic-bw.d create mode 100644 gas/testsuite/gas/arm/automatic-bw.s create mode 100644 gas/testsuite/gas/arm/automatic-cbz.d create mode 100644 gas/testsuite/gas/arm/automatic-cbz.s create mode 100644 gas/testsuite/gas/arm/automatic-clrex.d create mode 100644 gas/testsuite/gas/arm/automatic-clrex.s create mode 100644 gas/testsuite/gas/arm/automatic-lda.d create mode 100644 gas/testsuite/gas/arm/automatic-lda.s create mode 100644 gas/testsuite/gas/arm/automatic-ldaex.d create mode 100644 gas/testsuite/gas/arm/automatic-ldaex.s create mode 100644 gas/testsuite/gas/arm/automatic-ldaexb.d create mode 100644 gas/testsuite/gas/arm/automatic-ldaexb.s create mode 100644 gas/testsuite/gas/arm/automatic-ldrex.d create mode 100644 gas/testsuite/gas/arm/automatic-ldrex.s create mode 100644 gas/testsuite/gas/arm/automatic-ldrexd.d create mode 100644 gas/testsuite/gas/arm/automatic-ldrexd.s create mode 100644 gas/testsuite/gas/arm/automatic-movw.d create mode 100644 gas/testsuite/gas/arm/automatic-movw.s create mode 100644 gas/testsuite/gas/arm/automatic-sdiv.d create mode 100644 gas/testsuite/gas/arm/automatic-sdiv.s create mode 100644 gas/testsuite/gas/arm/automatic-strexb.d create mode 100644 gas/testsuite/gas/arm/automatic-strexb.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 0808b297a99..eac24c25c7e 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,28 @@ +2015-12-24 Andre Vieira + + * gas/arm/automatic-bw.d: New. + * gas/arm/automatic-bw.s: New. + * gas/arm/automatic-cbz.d: New. + * gas/arm/automatic-cbz.s: New. + * gas/arm/automatic-clrex.d: New. + * gas/arm/automatic-clrex.s: New. + * gas/arm/automatic-lda.d: New. + * gas/arm/automatic-lda.s: New. + * gas/arm/automatic-ldaex.d: New. + * gas/arm/automatic-ldaex.s: New. + * gas/arm/automatic-ldaexb.d: New. + * gas/arm/automatic-ldaexb.s: New. + * gas/arm/automatic-ldrex.d: New. + * gas/arm/automatic-ldrex.s: New. + * gas/arm/automatic-ldrexd.d: New. + * gas/arm/automatic-ldrexd.s: New. + * gas/arm/automatic-movw.d: New. + * gas/arm/automatic-movw.s: New. + * gas/arm/automatic-sdiv.d: New. + * gas/arm/automatic-sdiv.s: New. + * gas/arm/automatic-strexb.d: New. + * gas/arm/automatic-strexb.s: New. + 2015-12-16 Mickael Guene * gas/arm/adds-thumb1-reloc-local.d: New diff --git a/gas/testsuite/gas/arm/automatic-bw.d b/gas/testsuite/gas/arm/automatic-bw.d new file mode 100644 index 00000000000..d8cf54356d4 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-bw.d @@ -0,0 +1,8 @@ +# readelf: -A +# This test is only valid on ELF based ports. +#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +Attribute Section: aeabi +File Attributes + Tag_CPU_arch: v6T2 + Tag_THUMB_ISA_use: Thumb-2 + diff --git a/gas/testsuite/gas/arm/automatic-bw.s b/gas/testsuite/gas/arm/automatic-bw.s new file mode 100644 index 00000000000..1fdebe22046 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-bw.s @@ -0,0 +1,3 @@ +.thumb +.syntax unified +b.w .L0 diff --git a/gas/testsuite/gas/arm/automatic-cbz.d b/gas/testsuite/gas/arm/automatic-cbz.d new file mode 100644 index 00000000000..d8cf54356d4 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-cbz.d @@ -0,0 +1,8 @@ +# readelf: -A +# This test is only valid on ELF based ports. +#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +Attribute Section: aeabi +File Attributes + Tag_CPU_arch: v6T2 + Tag_THUMB_ISA_use: Thumb-2 + diff --git a/gas/testsuite/gas/arm/automatic-cbz.s b/gas/testsuite/gas/arm/automatic-cbz.s new file mode 100644 index 00000000000..523610ee5a9 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-cbz.s @@ -0,0 +1,5 @@ +.thumb +.syntax unified +cbz r0, .L0 +nop +.L0: diff --git a/gas/testsuite/gas/arm/automatic-clrex.d b/gas/testsuite/gas/arm/automatic-clrex.d new file mode 100644 index 00000000000..d8cf54356d4 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-clrex.d @@ -0,0 +1,8 @@ +# readelf: -A +# This test is only valid on ELF based ports. +#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +Attribute Section: aeabi +File Attributes + Tag_CPU_arch: v6T2 + Tag_THUMB_ISA_use: Thumb-2 + diff --git a/gas/testsuite/gas/arm/automatic-clrex.s b/gas/testsuite/gas/arm/automatic-clrex.s new file mode 100644 index 00000000000..d4e6a363214 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-clrex.s @@ -0,0 +1,3 @@ +.thumb +.syntax unified +clrex diff --git a/gas/testsuite/gas/arm/automatic-lda.d b/gas/testsuite/gas/arm/automatic-lda.d new file mode 100644 index 00000000000..02bb7a48a92 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-lda.d @@ -0,0 +1,9 @@ +# readelf: -A +# This test is only valid on ELF based ports. +#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +Attribute Section: aeabi +File Attributes + Tag_CPU_arch: v8 + Tag_CPU_arch_profile: Application + Tag_THUMB_ISA_use: Thumb-2 + diff --git a/gas/testsuite/gas/arm/automatic-lda.s b/gas/testsuite/gas/arm/automatic-lda.s new file mode 100644 index 00000000000..4c257e16f93 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-lda.s @@ -0,0 +1,3 @@ +.thumb +.syntax unified +lda r0, [r1] diff --git a/gas/testsuite/gas/arm/automatic-ldaex.d b/gas/testsuite/gas/arm/automatic-ldaex.d new file mode 100644 index 00000000000..02bb7a48a92 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-ldaex.d @@ -0,0 +1,9 @@ +# readelf: -A +# This test is only valid on ELF based ports. +#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +Attribute Section: aeabi +File Attributes + Tag_CPU_arch: v8 + Tag_CPU_arch_profile: Application + Tag_THUMB_ISA_use: Thumb-2 + diff --git a/gas/testsuite/gas/arm/automatic-ldaex.s b/gas/testsuite/gas/arm/automatic-ldaex.s new file mode 100644 index 00000000000..c36e6fb06ea --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-ldaex.s @@ -0,0 +1,3 @@ +.thumb +.syntax unified +ldaex r0, [r1] diff --git a/gas/testsuite/gas/arm/automatic-ldaexb.d b/gas/testsuite/gas/arm/automatic-ldaexb.d new file mode 100644 index 00000000000..02bb7a48a92 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-ldaexb.d @@ -0,0 +1,9 @@ +# readelf: -A +# This test is only valid on ELF based ports. +#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +Attribute Section: aeabi +File Attributes + Tag_CPU_arch: v8 + Tag_CPU_arch_profile: Application + Tag_THUMB_ISA_use: Thumb-2 + diff --git a/gas/testsuite/gas/arm/automatic-ldaexb.s b/gas/testsuite/gas/arm/automatic-ldaexb.s new file mode 100644 index 00000000000..47459cc88d8 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-ldaexb.s @@ -0,0 +1,3 @@ +.thumb +.syntax unified +ldaexb r0, [r1] diff --git a/gas/testsuite/gas/arm/automatic-ldrex.d b/gas/testsuite/gas/arm/automatic-ldrex.d new file mode 100644 index 00000000000..d8cf54356d4 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-ldrex.d @@ -0,0 +1,8 @@ +# readelf: -A +# This test is only valid on ELF based ports. +#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +Attribute Section: aeabi +File Attributes + Tag_CPU_arch: v6T2 + Tag_THUMB_ISA_use: Thumb-2 + diff --git a/gas/testsuite/gas/arm/automatic-ldrex.s b/gas/testsuite/gas/arm/automatic-ldrex.s new file mode 100644 index 00000000000..9a51984f439 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-ldrex.s @@ -0,0 +1,3 @@ +.thumb +.syntax unified +ldrex r0, [r0] diff --git a/gas/testsuite/gas/arm/automatic-ldrexd.d b/gas/testsuite/gas/arm/automatic-ldrexd.d new file mode 100644 index 00000000000..d8cf54356d4 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-ldrexd.d @@ -0,0 +1,8 @@ +# readelf: -A +# This test is only valid on ELF based ports. +#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +Attribute Section: aeabi +File Attributes + Tag_CPU_arch: v6T2 + Tag_THUMB_ISA_use: Thumb-2 + diff --git a/gas/testsuite/gas/arm/automatic-ldrexd.s b/gas/testsuite/gas/arm/automatic-ldrexd.s new file mode 100644 index 00000000000..c6a728bc9e5 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-ldrexd.s @@ -0,0 +1,3 @@ +.thumb +.syntax unified +ldrexd r0, r1, [r2] diff --git a/gas/testsuite/gas/arm/automatic-movw.d b/gas/testsuite/gas/arm/automatic-movw.d new file mode 100644 index 00000000000..d8cf54356d4 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-movw.d @@ -0,0 +1,8 @@ +# readelf: -A +# This test is only valid on ELF based ports. +#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +Attribute Section: aeabi +File Attributes + Tag_CPU_arch: v6T2 + Tag_THUMB_ISA_use: Thumb-2 + diff --git a/gas/testsuite/gas/arm/automatic-movw.s b/gas/testsuite/gas/arm/automatic-movw.s new file mode 100644 index 00000000000..71fbd69d525 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-movw.s @@ -0,0 +1,3 @@ +.thumb +.syntax unified +movw r0, #65535 diff --git a/gas/testsuite/gas/arm/automatic-sdiv.d b/gas/testsuite/gas/arm/automatic-sdiv.d new file mode 100644 index 00000000000..c2e5750e8f7 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-sdiv.d @@ -0,0 +1,9 @@ +# readelf: -A +# This test is only valid on ELF based ports. +#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +Attribute Section: aeabi +File Attributes + Tag_CPU_arch: v7 + Tag_THUMB_ISA_use: Thumb-2 + Tag_DIV_use: Allowed in v7-A with integer division extension + diff --git a/gas/testsuite/gas/arm/automatic-sdiv.s b/gas/testsuite/gas/arm/automatic-sdiv.s new file mode 100644 index 00000000000..09957d875d3 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-sdiv.s @@ -0,0 +1,3 @@ +.thumb +.syntax unified +sdiv r0, r0, r1 diff --git a/gas/testsuite/gas/arm/automatic-strexb.d b/gas/testsuite/gas/arm/automatic-strexb.d new file mode 100644 index 00000000000..d8cf54356d4 --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-strexb.d @@ -0,0 +1,8 @@ +# readelf: -A +# This test is only valid on ELF based ports. +#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +Attribute Section: aeabi +File Attributes + Tag_CPU_arch: v6T2 + Tag_THUMB_ISA_use: Thumb-2 + diff --git a/gas/testsuite/gas/arm/automatic-strexb.s b/gas/testsuite/gas/arm/automatic-strexb.s new file mode 100644 index 00000000000..480e52f4f2d --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-strexb.s @@ -0,0 +1,3 @@ +.thumb +.syntax unified +strexb r0, r1, [r2] -- 2.30.2