diff options
author | Thomas Preud'homme <thomas.preudhomme@arm.com> | 2015-12-24 16:50:26 +0800 |
---|---|---|
committer | Thomas Preud'homme <thomas.preudhomme@arm.com> | 2015-12-24 16:54:21 +0800 |
commit | 443bfd5a371633064bf251a74b27382c7774f217 (patch) | |
tree | 14c300d20748af4fb39ef320c52958c5cf8590f9 /gas | |
parent | ab8314b3d99625c9a2125d39f4f3e74bf9e49cce (diff) | |
download | fsf-binutils-gdb-443bfd5a371633064bf251a74b27382c7774f217.zip fsf-binutils-gdb-443bfd5a371633064bf251a74b27382c7774f217.tar.gz fsf-binutils-gdb-443bfd5a371633064bf251a74b27382c7774f217.tar.bz2 |
Add tests for gas arch autodetection on ARM
2015-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
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.
Diffstat (limited to 'gas')
23 files changed, 152 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 0808b29..eac24c2 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,28 @@ +2015-12-24 Andre Vieira <andre.simoesdiasvieira@arm.com> + + * 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 <mickael.guene@st.com> * 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 0000000..d8cf543 --- /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 0000000..1fdebe2 --- /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 0000000..d8cf543 --- /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 0000000..523610e --- /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 0000000..d8cf543 --- /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 0000000..d4e6a36 --- /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 0000000..02bb7a4 --- /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 0000000..4c257e1 --- /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 0000000..02bb7a4 --- /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 0000000..c36e6fb --- /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 0000000..02bb7a4 --- /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 0000000..47459cc --- /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 0000000..d8cf543 --- /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 0000000..9a51984 --- /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 0000000..d8cf543 --- /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 0000000..c6a728b --- /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 0000000..d8cf543 --- /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 0000000..71fbd69 --- /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 0000000..c2e5750 --- /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 0000000..09957d8 --- /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 0000000..d8cf543 --- /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 0000000..480e52f --- /dev/null +++ b/gas/testsuite/gas/arm/automatic-strexb.s @@ -0,0 +1,3 @@ +.thumb +.syntax unified +strexb r0, r1, [r2] |