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.
This commit is contained in:
Thomas Preud'homme 2015-12-24 16:50:26 +08:00
parent ab8314b3d9
commit 443bfd5a37
23 changed files with 152 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,3 @@
.thumb
.syntax unified
b.w .L0

View File

@ -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

View File

@ -0,0 +1,5 @@
.thumb
.syntax unified
cbz r0, .L0
nop
.L0:

View File

@ -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

View File

@ -0,0 +1,3 @@
.thumb
.syntax unified
clrex

View File

@ -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

View File

@ -0,0 +1,3 @@
.thumb
.syntax unified
lda r0, [r1]

View File

@ -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

View File

@ -0,0 +1,3 @@
.thumb
.syntax unified
ldaex r0, [r1]

View File

@ -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

View File

@ -0,0 +1,3 @@
.thumb
.syntax unified
ldaexb r0, [r1]

View File

@ -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

View File

@ -0,0 +1,3 @@
.thumb
.syntax unified
ldrex r0, [r0]

View File

@ -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

View File

@ -0,0 +1,3 @@
.thumb
.syntax unified
ldrexd r0, r1, [r2]

View File

@ -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

View File

@ -0,0 +1,3 @@
.thumb
.syntax unified
movw r0, #65535

View File

@ -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

View File

@ -0,0 +1,3 @@
.thumb
.syntax unified
sdiv r0, r0, r1

View File

@ -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

View File

@ -0,0 +1,3 @@
.thumb
.syntax unified
strexb r0, r1, [r2]