From: Andre Vieira Date: Thu, 10 Dec 2015 02:16:29 +0000 (+0800) Subject: ARM autodetection tests X-Git-Tag: users/ARM/embedded-binutils-2_26-branch-2016q1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a0a507a014a7241aa8d7715ca5f1ef9b624fa19;p=thirdparty%2Fbinutils-gdb.git ARM autodetection tests --- 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]