aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2009-01-26 14:36:43 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2009-01-26 14:36:43 +0000
commitee3c0378c3af1a2a248430691635a46663cc9976 (patch)
tree80a0aceb16916d6e30bc36b407878b235d801362 /gas/testsuite
parent17f4880d2fc4a2758951631692072c9fb0147301 (diff)
downloadbinutils-ee3c0378c3af1a2a248430691635a46663cc9976.zip
binutils-ee3c0378c3af1a2a248430691635a46663cc9976.tar.gz
binutils-ee3c0378c3af1a2a248430691635a46663cc9976.tar.bz2
2009-01-26 Andrew Stubbs <ams@codesourcery.com>
gas/ * config/tc-arm.c (attributes_set_explicitly): New array. (s_arm_eabi_attribute): Check return value from s_vendor_attribute. (cpu_arch): Add ARM_ARCH_V5T. (aeabi_set_attribute_int): New function. (aeabi_set_attribute_string): New function. (aeabi_set_public_attributes): Set attributes according to the user's intentions, rather than the actual state of the binary. Use aeabi_set_attribute_int and aeabi_set_attribute_string instead of bfd_elf_add_proc_attr_int and bfd_elf_add_proc_attr_string. Support WMMXv2. Use attribute names instead of numbers. * read.c (s_vendor_attribute): Change return type to int. Return the tag number that was set. * read.h (s_vendor_attribute): Change return type to int. gas/testsuite/ * gas/arm/attr-cpu-directive.d: New file. * gas/arm/attr-cpu-directive.s: New file. * gas/arm/attr-default.d: New file. * gas/arm/attr-march-all.d: New file. * gas/arm/attr-march-armv1.d: New file. * gas/arm/attr-march-armv2.d: New file. * gas/arm/attr-march-armv2a.d: New file. * gas/arm/attr-march-armv2s.d: New file. * gas/arm/attr-march-armv3.d: New file. * gas/arm/attr-march-armv3m.d: New file. * gas/arm/attr-march-armv4.d: New file. * gas/arm/attr-march-armv4t.d: New file. * gas/arm/attr-march-armv4txm.d: New file. * gas/arm/attr-march-armv4xm.d: New file. * gas/arm/attr-march-armv5.d: New file. * gas/arm/attr-march-armv5t.d: New file. * gas/arm/attr-march-armv5te.d: New file. * gas/arm/attr-march-armv5tej.d: New file. * gas/arm/attr-march-armv5texp.d: New file. * gas/arm/attr-march-armv5txm.d: New file. * gas/arm/attr-march-armv6-m.d: New file. * gas/arm/attr-march-armv6.d: New file. * gas/arm/attr-march-armv6j.d: New file. * gas/arm/attr-march-armv6k.d: New file. * gas/arm/attr-march-armv6kt2.d: New file. * gas/arm/attr-march-armv6t2.d: New file. * gas/arm/attr-march-armv6z.d: New file. * gas/arm/attr-march-armv6zk.d: New file. * gas/arm/attr-march-armv6zkt2.d: New file. * gas/arm/attr-march-armv6zt2.d: New file. * gas/arm/attr-march-armv7-a.d: New file. * gas/arm/attr-march-armv7-m.d: New file. * gas/arm/attr-march-armv7-r.d: New file. * gas/arm/attr-march-armv7.d: New file. * gas/arm/attr-march-armv7a.d: New file. * gas/arm/attr-march-armv7m.d: New file. * gas/arm/attr-march-armv7r.d: New file. * gas/arm/attr-march-iwmmxt.d: New file. * gas/arm/attr-march-iwmmxt2.d: New file. * gas/arm/attr-march-xscale.d: New file. * gas/arm/attr-mcpu.d: New file. * gas/arm/attr-mfpu-arm1020e.d: New file. * gas/arm/attr-mfpu-arm1020t.d: New file. * gas/arm/attr-mfpu-arm1136jf-s.d: New file. * gas/arm/attr-mfpu-arm1136jfs.d: New file. * gas/arm/attr-mfpu-arm7500fe.d: New file. * gas/arm/attr-mfpu-fpa.d: New file. * gas/arm/attr-mfpu-fpa10.d: New file. * gas/arm/attr-mfpu-fpa11.d: New file. * gas/arm/attr-mfpu-fpe.d: New file. * gas/arm/attr-mfpu-fpe2.d: New file. * gas/arm/attr-mfpu-fpe3.d: New file. * gas/arm/attr-mfpu-maverick.d: New file. * gas/arm/attr-mfpu-neon-fp16.d: New file. * gas/arm/attr-mfpu-neon.d: New file. * gas/arm/attr-mfpu-softfpa.d: New file. * gas/arm/attr-mfpu-softvfp+vfp.d: New file. * gas/arm/attr-mfpu-softvfp.d: New file. * gas/arm/attr-mfpu-vfp.d: New file. * gas/arm/attr-mfpu-vfp10-r0.d: New file. * gas/arm/attr-mfpu-vfp10.d: New file. * gas/arm/attr-mfpu-vfp3.d: New file. * gas/arm/attr-mfpu-vfp9.d: New file. * gas/arm/attr-mfpu-vfpv2.d: New file. * gas/arm/attr-mfpu-vfpv3-d16.d: New file. * gas/arm/attr-mfpu-vfpv3.d: New file. * gas/arm/attr-mfpu-vfpxd.d: New file. * gas/arm/attr-order.d: Update Tag_ARM_ISA_use and Tag_THUMB_ISA_use. * gas/arm/attr-override-cpu-directive.d: New file. * gas/arm/attr-override-cpu-directive.s: New file. * gas/arm/attr-override-mcpu.d: New file. * gas/arm/attr-override-mcpu.s: New file. * gas/arm/blank.s: New file. * gas/arm/eabi_attr_1.d: Update Tag_ARM_ISA_use and Tag_THUMB_ISA_use. ld/testsuite/ * ld-arm/attr-merge-3.attr: Update following gas change. * ld-arm/attr-merge-2.attr: Update Tag_ARM_ISA_use and Tag_THUMB_ISA_use following gas changes. * ld-arm/attr-merge-4.attr: Likewise. * ld-arm/attr-merge-5.attr: Likewise. * ld-arm/attr-merge-arch-1.attr: Likewise. * ld-arm/attr-merge-arch-2.attr: Likewise. * ld-arm/attr-merge-unknown-2.d: Likewise. * ld-arm/attr-merge-unknown-2r.d: Likewise. * ld-arm/attr-merge-unknown-3.d: Likewise. * ld-arm/attr-merge-wchar-00-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-00.d: Likewise. * ld-arm/attr-merge-wchar-02-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-02.d: Likewise. * ld-arm/attr-merge-wchar-04-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-04.d: Likewise. * ld-arm/attr-merge-wchar-20-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-20.d: Likewise. * ld-arm/attr-merge-wchar-22-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-22.d: Likewise. * ld-arm/attr-merge-wchar-24-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-40-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-40.d: Likewise. * ld-arm/attr-merge-wchar-42-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-44-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-44.d: Likewise. * ld-arm/attr-merge.attr: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog77
-rw-r--r--gas/testsuite/gas/arm/attr-cpu-directive.d14
-rw-r--r--gas/testsuite/gas/arm/attr-cpu-directive.s1
-rw-r--r--gas/testsuite/gas/arm/attr-default.d11
-rw-r--r--gas/testsuite/gas/arm/attr-march-all.d14
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv1.d12
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv2.d12
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv2a.d12
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv2s.d12
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv3.d12
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv3m.d12
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv4.d12
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv4t.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv4txm.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv4xm.d12
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv5.d12
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv5t.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv5te.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv5tej.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv5texp.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv5txm.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv6-m.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv6.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv6j.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv6k.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv6kt2.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv6t2.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv6z.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv6zk.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv6zkt2.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv6zt2.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv7-a.d14
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv7-m.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv7-r.d14
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv7.d12
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv7a.d14
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv7m.d13
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv7r.d14
-rw-r--r--gas/testsuite/gas/arm/attr-march-iwmmxt.d14
-rw-r--r--gas/testsuite/gas/arm/attr-march-iwmmxt2.d14
-rw-r--r--gas/testsuite/gas/arm/attr-march-xscale.d13
-rw-r--r--gas/testsuite/gas/arm/attr-mcpu.d16
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-arm1020e.d12
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-arm1020t.d12
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-arm1136jf-s.d12
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-arm1136jfs.d12
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-arm7500fe.d11
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-fpa.d11
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-fpa10.d11
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-fpa11.d11
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-fpe.d11
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-fpe2.d11
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-fpe3.d11
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-maverick.d11
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-neon-fp16.d14
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-neon.d13
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-softfpa.d11
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-softvfp+vfp.d12
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-softvfp.d11
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-vfp.d12
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-vfp10-r0.d12
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-vfp10.d12
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-vfp3.d12
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-vfp9.d12
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-vfpv2.d12
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-vfpv3-d16.d12
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-vfpv3.d12
-rw-r--r--gas/testsuite/gas/arm/attr-mfpu-vfpxd.d12
-rw-r--r--gas/testsuite/gas/arm/attr-order.d2
-rw-r--r--gas/testsuite/gas/arm/attr-override-cpu-directive.d12
-rw-r--r--gas/testsuite/gas/arm/attr-override-cpu-directive.s5
-rw-r--r--gas/testsuite/gas/arm/attr-override-mcpu.d13
-rw-r--r--gas/testsuite/gas/arm/attr-override-mcpu.s2
-rw-r--r--gas/testsuite/gas/arm/blank.s1
-rw-r--r--gas/testsuite/gas/arm/eabi_attr_1.d1
75 files changed, 938 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 2b1ddb0..a1ebfbd 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,80 @@
+2009-01-26 Andrew Stubbs <ams@codesourcery.com>
+
+ * gas/arm/attr-cpu-directive.d: New file.
+ * gas/arm/attr-cpu-directive.s: New file.
+ * gas/arm/attr-default.d: New file.
+ * gas/arm/attr-march-all.d: New file.
+ * gas/arm/attr-march-armv1.d: New file.
+ * gas/arm/attr-march-armv2.d: New file.
+ * gas/arm/attr-march-armv2a.d: New file.
+ * gas/arm/attr-march-armv2s.d: New file.
+ * gas/arm/attr-march-armv3.d: New file.
+ * gas/arm/attr-march-armv3m.d: New file.
+ * gas/arm/attr-march-armv4.d: New file.
+ * gas/arm/attr-march-armv4t.d: New file.
+ * gas/arm/attr-march-armv4txm.d: New file.
+ * gas/arm/attr-march-armv4xm.d: New file.
+ * gas/arm/attr-march-armv5.d: New file.
+ * gas/arm/attr-march-armv5t.d: New file.
+ * gas/arm/attr-march-armv5te.d: New file.
+ * gas/arm/attr-march-armv5tej.d: New file.
+ * gas/arm/attr-march-armv5texp.d: New file.
+ * gas/arm/attr-march-armv5txm.d: New file.
+ * gas/arm/attr-march-armv6-m.d: New file.
+ * gas/arm/attr-march-armv6.d: New file.
+ * gas/arm/attr-march-armv6j.d: New file.
+ * gas/arm/attr-march-armv6k.d: New file.
+ * gas/arm/attr-march-armv6kt2.d: New file.
+ * gas/arm/attr-march-armv6t2.d: New file.
+ * gas/arm/attr-march-armv6z.d: New file.
+ * gas/arm/attr-march-armv6zk.d: New file.
+ * gas/arm/attr-march-armv6zkt2.d: New file.
+ * gas/arm/attr-march-armv6zt2.d: New file.
+ * gas/arm/attr-march-armv7-a.d: New file.
+ * gas/arm/attr-march-armv7-m.d: New file.
+ * gas/arm/attr-march-armv7-r.d: New file.
+ * gas/arm/attr-march-armv7.d: New file.
+ * gas/arm/attr-march-armv7a.d: New file.
+ * gas/arm/attr-march-armv7m.d: New file.
+ * gas/arm/attr-march-armv7r.d: New file.
+ * gas/arm/attr-march-iwmmxt.d: New file.
+ * gas/arm/attr-march-iwmmxt2.d: New file.
+ * gas/arm/attr-march-xscale.d: New file.
+ * gas/arm/attr-mcpu.d: New file.
+ * gas/arm/attr-mfpu-arm1020e.d: New file.
+ * gas/arm/attr-mfpu-arm1020t.d: New file.
+ * gas/arm/attr-mfpu-arm1136jf-s.d: New file.
+ * gas/arm/attr-mfpu-arm1136jfs.d: New file.
+ * gas/arm/attr-mfpu-arm7500fe.d: New file.
+ * gas/arm/attr-mfpu-fpa.d: New file.
+ * gas/arm/attr-mfpu-fpa10.d: New file.
+ * gas/arm/attr-mfpu-fpa11.d: New file.
+ * gas/arm/attr-mfpu-fpe.d: New file.
+ * gas/arm/attr-mfpu-fpe2.d: New file.
+ * gas/arm/attr-mfpu-fpe3.d: New file.
+ * gas/arm/attr-mfpu-maverick.d: New file.
+ * gas/arm/attr-mfpu-neon-fp16.d: New file.
+ * gas/arm/attr-mfpu-neon.d: New file.
+ * gas/arm/attr-mfpu-softfpa.d: New file.
+ * gas/arm/attr-mfpu-softvfp+vfp.d: New file.
+ * gas/arm/attr-mfpu-softvfp.d: New file.
+ * gas/arm/attr-mfpu-vfp.d: New file.
+ * gas/arm/attr-mfpu-vfp10-r0.d: New file.
+ * gas/arm/attr-mfpu-vfp10.d: New file.
+ * gas/arm/attr-mfpu-vfp3.d: New file.
+ * gas/arm/attr-mfpu-vfp9.d: New file.
+ * gas/arm/attr-mfpu-vfpv2.d: New file.
+ * gas/arm/attr-mfpu-vfpv3-d16.d: New file.
+ * gas/arm/attr-mfpu-vfpv3.d: New file.
+ * gas/arm/attr-mfpu-vfpxd.d: New file.
+ * gas/arm/attr-order.d: Update Tag_ARM_ISA_use and Tag_THUMB_ISA_use.
+ * gas/arm/attr-override-cpu-directive.d: New file.
+ * gas/arm/attr-override-cpu-directive.s: New file.
+ * gas/arm/attr-override-mcpu.d: New file.
+ * gas/arm/attr-override-mcpu.s: New file.
+ * gas/arm/blank.s: New file.
+ * gas/arm/eabi_attr_1.d: Update Tag_ARM_ISA_use and Tag_THUMB_ISA_use.
+
2009-01-26 Nick Clifton <nickc@redhat.com>
* gas/arm/attr-order.d: Do not run this test for non-ELF based ARM
diff --git a/gas/testsuite/gas/arm/attr-cpu-directive.d b/gas/testsuite/gas/arm/attr-cpu-directive.d
new file mode 100644
index 0000000..357e804
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-cpu-directive.d
@@ -0,0 +1,14 @@
+# name: EABI attributes from directives
+# source: attr-cpu-directive.s
+# as:
+# 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_name: "CORTEX-A8"
+ Tag_CPU_arch: v7
+ Tag_CPU_arch_profile: Application
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-2
diff --git a/gas/testsuite/gas/arm/attr-cpu-directive.s b/gas/testsuite/gas/arm/attr-cpu-directive.s
new file mode 100644
index 0000000..ced1ff4
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-cpu-directive.s
@@ -0,0 +1 @@
+ .cpu cortex-a8
diff --git a/gas/testsuite/gas/arm/attr-default.d b/gas/testsuite/gas/arm/attr-default.d
new file mode 100644
index 0000000..fca3597
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-default.d
@@ -0,0 +1,11 @@
+# name: EABI attribute defaults
+# source: blank.s
+# as:
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-march-all.d b/gas/testsuite/gas/arm/attr-march-all.d
new file mode 100644
index 0000000..66f2f79
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-all.d
@@ -0,0 +1,14 @@
+# name: attributes for -march=all
+# source: blank.s
+# as: -march=all
+# 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_name: "all"
+ Tag_CPU_arch: v7
+ Tag_CPU_arch_profile: Application
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-2
diff --git a/gas/testsuite/gas/arm/attr-march-armv1.d b/gas/testsuite/gas/arm/attr-march-armv1.d
new file mode 100644
index 0000000..d81b3e9
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv1.d
@@ -0,0 +1,12 @@
+# name: attributes for -march=armv1
+# source: blank.s
+# as: -march=armv1
+# 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_name: "1"
+ Tag_CPU_arch: v4
+ Tag_ARM_ISA_use: Yes
diff --git a/gas/testsuite/gas/arm/attr-march-armv2.d b/gas/testsuite/gas/arm/attr-march-armv2.d
new file mode 100644
index 0000000..3c59db9
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv2.d
@@ -0,0 +1,12 @@
+# name: attributes for -march=armv2
+# source: blank.s
+# as: -march=armv2
+# 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_name: "2"
+ Tag_CPU_arch: v4
+ Tag_ARM_ISA_use: Yes
diff --git a/gas/testsuite/gas/arm/attr-march-armv2a.d b/gas/testsuite/gas/arm/attr-march-armv2a.d
new file mode 100644
index 0000000..1e6bcd0
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv2a.d
@@ -0,0 +1,12 @@
+# name: attributes for -march=armv2a
+# source: blank.s
+# as: -march=armv2a
+# 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_name: "2A"
+ Tag_CPU_arch: v4
+ Tag_ARM_ISA_use: Yes
diff --git a/gas/testsuite/gas/arm/attr-march-armv2s.d b/gas/testsuite/gas/arm/attr-march-armv2s.d
new file mode 100644
index 0000000..5dd6e89
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv2s.d
@@ -0,0 +1,12 @@
+# name: attributes for -march=armv2s
+# source: blank.s
+# as: -march=armv2s
+# 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_name: "2S"
+ Tag_CPU_arch: v4
+ Tag_ARM_ISA_use: Yes
diff --git a/gas/testsuite/gas/arm/attr-march-armv3.d b/gas/testsuite/gas/arm/attr-march-armv3.d
new file mode 100644
index 0000000..e34b83d
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv3.d
@@ -0,0 +1,12 @@
+# name: attributes for -march=armv3
+# source: blank.s
+# as: -march=armv3
+# 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_name: "3"
+ Tag_CPU_arch: v4
+ Tag_ARM_ISA_use: Yes
diff --git a/gas/testsuite/gas/arm/attr-march-armv3m.d b/gas/testsuite/gas/arm/attr-march-armv3m.d
new file mode 100644
index 0000000..f911c70
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv3m.d
@@ -0,0 +1,12 @@
+# name: attributes for -march=armv3m
+# source: blank.s
+# as: -march=armv3m
+# 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_name: "3M"
+ Tag_CPU_arch: v4
+ Tag_ARM_ISA_use: Yes
diff --git a/gas/testsuite/gas/arm/attr-march-armv4.d b/gas/testsuite/gas/arm/attr-march-armv4.d
new file mode 100644
index 0000000..283cd70
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv4.d
@@ -0,0 +1,12 @@
+# name: attributes for -march=armv4
+# source: blank.s
+# as: -march=armv4
+# 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_name: "4"
+ Tag_CPU_arch: v4
+ Tag_ARM_ISA_use: Yes
diff --git a/gas/testsuite/gas/arm/attr-march-armv4t.d b/gas/testsuite/gas/arm/attr-march-armv4t.d
new file mode 100644
index 0000000..fb860af
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv4t.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv4t
+# source: blank.s
+# as: -march=armv4t
+# 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_name: "4T"
+ Tag_CPU_arch: v4T
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-march-armv4txm.d b/gas/testsuite/gas/arm/attr-march-armv4txm.d
new file mode 100644
index 0000000..5995f29
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv4txm.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv4txm
+# source: blank.s
+# as: -march=armv4txm
+# 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_name: "4TXM"
+ Tag_CPU_arch: v4T
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-march-armv4xm.d b/gas/testsuite/gas/arm/attr-march-armv4xm.d
new file mode 100644
index 0000000..3ece898
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv4xm.d
@@ -0,0 +1,12 @@
+# name: attributes for -march=armv4xm
+# source: blank.s
+# as: -march=armv4xm
+# 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_name: "4XM"
+ Tag_CPU_arch: v4
+ Tag_ARM_ISA_use: Yes
diff --git a/gas/testsuite/gas/arm/attr-march-armv5.d b/gas/testsuite/gas/arm/attr-march-armv5.d
new file mode 100644
index 0000000..7ca0c76
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv5.d
@@ -0,0 +1,12 @@
+# name: attributes for -march=armv5
+# source: blank.s
+# as: -march=armv5
+# 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_name: "5"
+ Tag_CPU_arch: v5T
+ Tag_ARM_ISA_use: Yes
diff --git a/gas/testsuite/gas/arm/attr-march-armv5t.d b/gas/testsuite/gas/arm/attr-march-armv5t.d
new file mode 100644
index 0000000..1d4d64d
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv5t.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv5t
+# source: blank.s
+# as: -march=armv5t
+# 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_name: "5T"
+ Tag_CPU_arch: v5T
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-march-armv5te.d b/gas/testsuite/gas/arm/attr-march-armv5te.d
new file mode 100644
index 0000000..311296d
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv5te.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv5te
+# source: blank.s
+# as: -march=armv5te
+# 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_name: "5TE"
+ Tag_CPU_arch: v5TE
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-march-armv5tej.d b/gas/testsuite/gas/arm/attr-march-armv5tej.d
new file mode 100644
index 0000000..2ec8865
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv5tej.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv5tej
+# source: blank.s
+# as: -march=armv5tej
+# 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_name: "5TEJ"
+ Tag_CPU_arch: v5TEJ
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-march-armv5texp.d b/gas/testsuite/gas/arm/attr-march-armv5texp.d
new file mode 100644
index 0000000..29fd3b3
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv5texp.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv5texp
+# source: blank.s
+# as: -march=armv5texp
+# 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_name: "5TEXP"
+ Tag_CPU_arch: v5TE
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-march-armv5txm.d b/gas/testsuite/gas/arm/attr-march-armv5txm.d
new file mode 100644
index 0000000..c21a0ef
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv5txm.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv5txm
+# source: blank.s
+# as: -march=armv5txm
+# 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_name: "5TXM"
+ Tag_CPU_arch: v5T
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-march-armv6-m.d b/gas/testsuite/gas/arm/attr-march-armv6-m.d
new file mode 100644
index 0000000..b5abfbd
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv6-m.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv6-m
+# source: blank.s
+# as: -march=armv6-m
+# 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_name: "6-M"
+ Tag_CPU_arch: v6-M
+ Tag_CPU_arch_profile: Microcontroller
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-march-armv6.d b/gas/testsuite/gas/arm/attr-march-armv6.d
new file mode 100644
index 0000000..87afc90
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv6.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv6
+# source: blank.s
+# as: -march=armv6
+# 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_name: "6"
+ Tag_CPU_arch: v6
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-march-armv6j.d b/gas/testsuite/gas/arm/attr-march-armv6j.d
new file mode 100644
index 0000000..2d9ec70
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv6j.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv6j
+# source: blank.s
+# as: -march=armv6j
+# 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_name: "6J"
+ Tag_CPU_arch: v6
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-march-armv6k.d b/gas/testsuite/gas/arm/attr-march-armv6k.d
new file mode 100644
index 0000000..2bb0ba8
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv6k.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv6k
+# source: blank.s
+# as: -march=armv6k
+# 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_name: "6K"
+ Tag_CPU_arch: v6K
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-march-armv6kt2.d b/gas/testsuite/gas/arm/attr-march-armv6kt2.d
new file mode 100644
index 0000000..305040f
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv6kt2.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv6kt2
+# source: blank.s
+# as: -march=armv6kt2
+# 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_name: "6KT2"
+ Tag_CPU_arch: v6T2
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-2
diff --git a/gas/testsuite/gas/arm/attr-march-armv6t2.d b/gas/testsuite/gas/arm/attr-march-armv6t2.d
new file mode 100644
index 0000000..641ed9c
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv6t2.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv6t2
+# source: blank.s
+# as: -march=armv6t2
+# 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_name: "6T2"
+ Tag_CPU_arch: v6T2
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-2
diff --git a/gas/testsuite/gas/arm/attr-march-armv6z.d b/gas/testsuite/gas/arm/attr-march-armv6z.d
new file mode 100644
index 0000000..9870462
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv6z.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv6z
+# source: blank.s
+# as: -march=armv6z
+# 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_name: "6Z"
+ Tag_CPU_arch: v6KZ
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-march-armv6zk.d b/gas/testsuite/gas/arm/attr-march-armv6zk.d
new file mode 100644
index 0000000..bec40e5
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv6zk.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv6zk
+# source: blank.s
+# as: -march=armv6zk
+# 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_name: "6ZK"
+ Tag_CPU_arch: v6K
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-march-armv6zkt2.d b/gas/testsuite/gas/arm/attr-march-armv6zkt2.d
new file mode 100644
index 0000000..672acd8
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv6zkt2.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv6zkt2
+# source: blank.s
+# as: -march=armv6zkt2
+# 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_name: "6ZKT2"
+ Tag_CPU_arch: v6T2
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-2
diff --git a/gas/testsuite/gas/arm/attr-march-armv6zt2.d b/gas/testsuite/gas/arm/attr-march-armv6zt2.d
new file mode 100644
index 0000000..e88d7eb
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv6zt2.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv6zt2
+# source: blank.s
+# as: -march=armv6zt2
+# 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_name: "6ZT2"
+ Tag_CPU_arch: v6T2
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-2
diff --git a/gas/testsuite/gas/arm/attr-march-armv7-a.d b/gas/testsuite/gas/arm/attr-march-armv7-a.d
new file mode 100644
index 0000000..6074a10
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv7-a.d
@@ -0,0 +1,14 @@
+# name: attributes for -march=armv7-a
+# source: blank.s
+# as: -march=armv7-a
+# 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_name: "7-A"
+ Tag_CPU_arch: v7
+ Tag_CPU_arch_profile: Application
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-2
diff --git a/gas/testsuite/gas/arm/attr-march-armv7-m.d b/gas/testsuite/gas/arm/attr-march-armv7-m.d
new file mode 100644
index 0000000..e768201
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv7-m.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv7-m
+# source: blank.s
+# as: -march=armv7-m
+# 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_name: "7-M"
+ Tag_CPU_arch: v7
+ Tag_CPU_arch_profile: Microcontroller
+ Tag_THUMB_ISA_use: Thumb-2
diff --git a/gas/testsuite/gas/arm/attr-march-armv7-r.d b/gas/testsuite/gas/arm/attr-march-armv7-r.d
new file mode 100644
index 0000000..3bfeb2b
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv7-r.d
@@ -0,0 +1,14 @@
+# name: attributes for -march=armv7-r
+# source: blank.s
+# as: -march=armv7-r
+# 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_name: "7-R"
+ Tag_CPU_arch: v7
+ Tag_CPU_arch_profile: Realtime
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-2
diff --git a/gas/testsuite/gas/arm/attr-march-armv7.d b/gas/testsuite/gas/arm/attr-march-armv7.d
new file mode 100644
index 0000000..ffb3dc1
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv7.d
@@ -0,0 +1,12 @@
+# name: attributes for -march=armv7
+# source: blank.s
+# as: -march=armv7
+# 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_name: "7"
+ Tag_CPU_arch: v7
+ Tag_THUMB_ISA_use: Thumb-2
diff --git a/gas/testsuite/gas/arm/attr-march-armv7a.d b/gas/testsuite/gas/arm/attr-march-armv7a.d
new file mode 100644
index 0000000..053c99f
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv7a.d
@@ -0,0 +1,14 @@
+# name: attributes for -march=armv7a
+# source: blank.s
+# as: -march=armv7a
+# 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_name: "7A"
+ Tag_CPU_arch: v7
+ Tag_CPU_arch_profile: Application
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-2
diff --git a/gas/testsuite/gas/arm/attr-march-armv7m.d b/gas/testsuite/gas/arm/attr-march-armv7m.d
new file mode 100644
index 0000000..ae0a767
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv7m.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=armv7m
+# source: blank.s
+# as: -march=armv7m
+# 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_name: "7M"
+ Tag_CPU_arch: v7
+ Tag_CPU_arch_profile: Microcontroller
+ Tag_THUMB_ISA_use: Thumb-2
diff --git a/gas/testsuite/gas/arm/attr-march-armv7r.d b/gas/testsuite/gas/arm/attr-march-armv7r.d
new file mode 100644
index 0000000..b7aa094
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv7r.d
@@ -0,0 +1,14 @@
+# name: attributes for -march=armv7r
+# source: blank.s
+# as: -march=armv7r
+# 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_name: "7R"
+ Tag_CPU_arch: v7
+ Tag_CPU_arch_profile: Realtime
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-2
diff --git a/gas/testsuite/gas/arm/attr-march-iwmmxt.d b/gas/testsuite/gas/arm/attr-march-iwmmxt.d
new file mode 100644
index 0000000..1d0358b
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-iwmmxt.d
@@ -0,0 +1,14 @@
+# name: attributes for -march=iwmmxt
+# source: blank.s
+# as: -march=iwmmxt
+# 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_name: "iwmmxt"
+ Tag_CPU_arch: v5TE
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_WMMX_arch: WMMXv1
diff --git a/gas/testsuite/gas/arm/attr-march-iwmmxt2.d b/gas/testsuite/gas/arm/attr-march-iwmmxt2.d
new file mode 100644
index 0000000..28b799a
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-iwmmxt2.d
@@ -0,0 +1,14 @@
+# name: attributes for -march=iwmmxt2
+# source: blank.s
+# as: -march=iwmmxt2
+# 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_name: "iwmmxt2"
+ Tag_CPU_arch: v5TE
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_WMMX_arch: WMMXv2
diff --git a/gas/testsuite/gas/arm/attr-march-xscale.d b/gas/testsuite/gas/arm/attr-march-xscale.d
new file mode 100644
index 0000000..b723f50
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-xscale.d
@@ -0,0 +1,13 @@
+# name: attributes for -march=xscale
+# source: blank.s
+# as: -march=xscale
+# 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_name: "xscale"
+ Tag_CPU_arch: v5TE
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-mcpu.d b/gas/testsuite/gas/arm/attr-mcpu.d
new file mode 100644
index 0000000..1a1c07f
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mcpu.d
@@ -0,0 +1,16 @@
+# name: EABI attributes from command line
+# source: blank.s
+# as: -mcpu=cortex-a8
+# 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_name: "CORTEX-A8"
+ Tag_CPU_arch: v7
+ Tag_CPU_arch_profile: Application
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-2
+ Tag_VFP_arch: VFPv3
+ Tag_Advanced_SIMD_arch: NEONv1
diff --git a/gas/testsuite/gas/arm/attr-mfpu-arm1020e.d b/gas/testsuite/gas/arm/attr-mfpu-arm1020e.d
new file mode 100644
index 0000000..bbdd244
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-arm1020e.d
@@ -0,0 +1,12 @@
+# name: attributes for -mfpu=arm1020e
+# source: blank.s
+# as: -mfpu=arm1020e
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv2
diff --git a/gas/testsuite/gas/arm/attr-mfpu-arm1020t.d b/gas/testsuite/gas/arm/attr-mfpu-arm1020t.d
new file mode 100644
index 0000000..5a5e413
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-arm1020t.d
@@ -0,0 +1,12 @@
+# name: attributes for -mfpu=arm1020t
+# source: blank.s
+# as: -mfpu=arm1020t
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv1
diff --git a/gas/testsuite/gas/arm/attr-mfpu-arm1136jf-s.d b/gas/testsuite/gas/arm/attr-mfpu-arm1136jf-s.d
new file mode 100644
index 0000000..1523c29
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-arm1136jf-s.d
@@ -0,0 +1,12 @@
+# name: attributes for -mfpu=arm1136jf-s
+# source: blank.s
+# as: -mfpu=arm1136jf-s
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv2
diff --git a/gas/testsuite/gas/arm/attr-mfpu-arm1136jfs.d b/gas/testsuite/gas/arm/attr-mfpu-arm1136jfs.d
new file mode 100644
index 0000000..745a913
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-arm1136jfs.d
@@ -0,0 +1,12 @@
+# name: attributes for -mfpu=arm1136jfs
+# source: blank.s
+# as: -mfpu=arm1136jfs
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv2
diff --git a/gas/testsuite/gas/arm/attr-mfpu-arm7500fe.d b/gas/testsuite/gas/arm/attr-mfpu-arm7500fe.d
new file mode 100644
index 0000000..8f789e2
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-arm7500fe.d
@@ -0,0 +1,11 @@
+# name: attributes for -mfpu=arm7500fe
+# source: blank.s
+# as: -mfpu=arm7500fe
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-mfpu-fpa.d b/gas/testsuite/gas/arm/attr-mfpu-fpa.d
new file mode 100644
index 0000000..196a0d0
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-fpa.d
@@ -0,0 +1,11 @@
+# name: attributes for -mfpu=fpa
+# source: blank.s
+# as: -mfpu=fpa
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-mfpu-fpa10.d b/gas/testsuite/gas/arm/attr-mfpu-fpa10.d
new file mode 100644
index 0000000..23373b6
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-fpa10.d
@@ -0,0 +1,11 @@
+# name: attributes for -mfpu=fpa10
+# source: blank.s
+# as: -mfpu=fpa10
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-mfpu-fpa11.d b/gas/testsuite/gas/arm/attr-mfpu-fpa11.d
new file mode 100644
index 0000000..c8928dd
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-fpa11.d
@@ -0,0 +1,11 @@
+# name: attributes for -mfpu=fpa11
+# source: blank.s
+# as: -mfpu=fpa11
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-mfpu-fpe.d b/gas/testsuite/gas/arm/attr-mfpu-fpe.d
new file mode 100644
index 0000000..a4b485a
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-fpe.d
@@ -0,0 +1,11 @@
+# name: attributes for -mfpu=fpe
+# source: blank.s
+# as: -mfpu=fpe
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-mfpu-fpe2.d b/gas/testsuite/gas/arm/attr-mfpu-fpe2.d
new file mode 100644
index 0000000..e848056
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-fpe2.d
@@ -0,0 +1,11 @@
+# name: attributes for -mfpu=fpe2
+# source: blank.s
+# as: -mfpu=fpe2
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-mfpu-fpe3.d b/gas/testsuite/gas/arm/attr-mfpu-fpe3.d
new file mode 100644
index 0000000..108625c
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-fpe3.d
@@ -0,0 +1,11 @@
+# name: attributes for -mfpu=fpe3
+# source: blank.s
+# as: -mfpu=fpe3
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-mfpu-maverick.d b/gas/testsuite/gas/arm/attr-mfpu-maverick.d
new file mode 100644
index 0000000..9ea4854
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-maverick.d
@@ -0,0 +1,11 @@
+# name: attributes for -mfpu=maverick
+# source: blank.s
+# as: -mfpu=maverick
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-mfpu-neon-fp16.d b/gas/testsuite/gas/arm/attr-mfpu-neon-fp16.d
new file mode 100644
index 0000000..818982d
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-neon-fp16.d
@@ -0,0 +1,14 @@
+# name: attributes for -mfpu=neon-fp16
+# source: blank.s
+# as: -mfpu=neon-fp16
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv3
+ Tag_Advanced_SIMD_arch: NEONv1
+ Tag_VFP_HP_extension: Allowed
diff --git a/gas/testsuite/gas/arm/attr-mfpu-neon.d b/gas/testsuite/gas/arm/attr-mfpu-neon.d
new file mode 100644
index 0000000..1480962
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-neon.d
@@ -0,0 +1,13 @@
+# name: attributes for -mfpu=neon
+# source: blank.s
+# as: -mfpu=neon
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv3
+ Tag_Advanced_SIMD_arch: NEONv1
diff --git a/gas/testsuite/gas/arm/attr-mfpu-softfpa.d b/gas/testsuite/gas/arm/attr-mfpu-softfpa.d
new file mode 100644
index 0000000..5a0fa17
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-softfpa.d
@@ -0,0 +1,11 @@
+# name: attributes for -mfpu=softfpa
+# source: blank.s
+# as: -mfpu=softfpa
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-mfpu-softvfp+vfp.d b/gas/testsuite/gas/arm/attr-mfpu-softvfp+vfp.d
new file mode 100644
index 0000000..7b21310
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-softvfp+vfp.d
@@ -0,0 +1,12 @@
+# name: attributes for -mfpu=softvfp+vfp
+# source: blank.s
+# as: -mfpu=softvfp+vfp
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv2
diff --git a/gas/testsuite/gas/arm/attr-mfpu-softvfp.d b/gas/testsuite/gas/arm/attr-mfpu-softvfp.d
new file mode 100644
index 0000000..c44dda5
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-softvfp.d
@@ -0,0 +1,11 @@
+# name: attributes for -mfpu=softvfp
+# source: blank.s
+# as: -mfpu=softvfp
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-mfpu-vfp.d b/gas/testsuite/gas/arm/attr-mfpu-vfp.d
new file mode 100644
index 0000000..49ae2b3
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-vfp.d
@@ -0,0 +1,12 @@
+# name: attributes for -mfpu=vfp
+# source: blank.s
+# as: -mfpu=vfp
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv2
diff --git a/gas/testsuite/gas/arm/attr-mfpu-vfp10-r0.d b/gas/testsuite/gas/arm/attr-mfpu-vfp10-r0.d
new file mode 100644
index 0000000..1f6cb2b
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-vfp10-r0.d
@@ -0,0 +1,12 @@
+# name: attributes for -mfpu=vfp10-r0
+# source: blank.s
+# as: -mfpu=vfp10-r0
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv1
diff --git a/gas/testsuite/gas/arm/attr-mfpu-vfp10.d b/gas/testsuite/gas/arm/attr-mfpu-vfp10.d
new file mode 100644
index 0000000..e72bcfa
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-vfp10.d
@@ -0,0 +1,12 @@
+# name: attributes for -mfpu=vfp10
+# source: blank.s
+# as: -mfpu=vfp10
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv2
diff --git a/gas/testsuite/gas/arm/attr-mfpu-vfp3.d b/gas/testsuite/gas/arm/attr-mfpu-vfp3.d
new file mode 100644
index 0000000..8512e9d
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-vfp3.d
@@ -0,0 +1,12 @@
+# name: attributes for -mfpu=vfp3
+# source: blank.s
+# as: -mfpu=vfp3
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv3
diff --git a/gas/testsuite/gas/arm/attr-mfpu-vfp9.d b/gas/testsuite/gas/arm/attr-mfpu-vfp9.d
new file mode 100644
index 0000000..35f53bb
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-vfp9.d
@@ -0,0 +1,12 @@
+# name: attributes for -mfpu=vfp9
+# source: blank.s
+# as: -mfpu=vfp9
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv2
diff --git a/gas/testsuite/gas/arm/attr-mfpu-vfpv2.d b/gas/testsuite/gas/arm/attr-mfpu-vfpv2.d
new file mode 100644
index 0000000..4091e4c
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-vfpv2.d
@@ -0,0 +1,12 @@
+# name: attributes for -mfpu=vfpv2
+# source: blank.s
+# as: -mfpu=vfpv2
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv2
diff --git a/gas/testsuite/gas/arm/attr-mfpu-vfpv3-d16.d b/gas/testsuite/gas/arm/attr-mfpu-vfpv3-d16.d
new file mode 100644
index 0000000..5542ee6
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-vfpv3-d16.d
@@ -0,0 +1,12 @@
+# name: attributes for -mfpu=vfpv3-d16
+# source: blank.s
+# as: -mfpu=vfpv3-d16
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv3-D16
diff --git a/gas/testsuite/gas/arm/attr-mfpu-vfpv3.d b/gas/testsuite/gas/arm/attr-mfpu-vfpv3.d
new file mode 100644
index 0000000..a5e4b7e
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-vfpv3.d
@@ -0,0 +1,12 @@
+# name: attributes for -mfpu=vfpv3
+# source: blank.s
+# as: -mfpu=vfpv3
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv3
diff --git a/gas/testsuite/gas/arm/attr-mfpu-vfpxd.d b/gas/testsuite/gas/arm/attr-mfpu-vfpxd.d
new file mode 100644
index 0000000..6c1154c
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-mfpu-vfpxd.d
@@ -0,0 +1,12 @@
+# name: attributes for -mfpu=vfpxd
+# source: blank.s
+# as: -mfpu=vfpxd
+# 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_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
+ Tag_VFP_arch: VFPv1
diff --git a/gas/testsuite/gas/arm/attr-order.d b/gas/testsuite/gas/arm/attr-order.d
index eee7153..2d58ec4 100644
--- a/gas/testsuite/gas/arm/attr-order.d
+++ b/gas/testsuite/gas/arm/attr-order.d
@@ -11,6 +11,8 @@ File Attributes
Tag_nodefaults: True
Tag_CPU_name: "ARM7TDMI"
Tag_CPU_arch: v4T
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
Tag_unknown_63: "val"
Tag_also_compatible_with: v6-M
Tag_T2EE_use: Allowed
diff --git a/gas/testsuite/gas/arm/attr-override-cpu-directive.d b/gas/testsuite/gas/arm/attr-override-cpu-directive.d
new file mode 100644
index 0000000..c8e0831
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-override-cpu-directive.d
@@ -0,0 +1,12 @@
+# name: EABI attributes .eabi_attribute overrides .cpu
+# source: attr-override-cpu-directive.s
+# as:
+# 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_name: "custom name"
+ Tag_CPU_arch: v7
+ Tag_THUMB_ISA_use: \?\?\? \(10\)
diff --git a/gas/testsuite/gas/arm/attr-override-cpu-directive.s b/gas/testsuite/gas/arm/attr-override-cpu-directive.s
new file mode 100644
index 0000000..21a2812
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-override-cpu-directive.s
@@ -0,0 +1,5 @@
+ .cpu arm7tdmi
+ .eabi_attribute Tag_CPU_name, "custom name"
+ .eabi_attribute Tag_CPU_arch, 10
+ .eabi_attribute Tag_ARM_ISA_use, 0
+ .eabi_attribute Tag_THUMB_ISA_use, 10
diff --git a/gas/testsuite/gas/arm/attr-override-mcpu.d b/gas/testsuite/gas/arm/attr-override-mcpu.d
new file mode 100644
index 0000000..31da04c
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-override-mcpu.d
@@ -0,0 +1,13 @@
+# name: EABI attributes .cpu overrides -mcpu
+# source: attr-override-mcpu.s
+# as: -mcpu=cortex-a8
+# 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_name: "ARM7TDMI"
+ Tag_CPU_arch: v4T
+ Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-override-mcpu.s b/gas/testsuite/gas/arm/attr-override-mcpu.s
new file mode 100644
index 0000000..bc7a04c
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-override-mcpu.s
@@ -0,0 +1,2 @@
+ .cpu arm7tdmi
+ .fpu softfpa
diff --git a/gas/testsuite/gas/arm/blank.s b/gas/testsuite/gas/arm/blank.s
new file mode 100644
index 0000000..1d22054
--- /dev/null
+++ b/gas/testsuite/gas/arm/blank.s
@@ -0,0 +1 @@
+@ this file left intentionally blank
diff --git a/gas/testsuite/gas/arm/eabi_attr_1.d b/gas/testsuite/gas/arm/eabi_attr_1.d
index 0e97add..e3e3982 100644
--- a/gas/testsuite/gas/arm/eabi_attr_1.d
+++ b/gas/testsuite/gas/arm/eabi_attr_1.d
@@ -7,6 +7,7 @@ File Attributes
Tag_CPU_name: "ARM1136JF-S"
Tag_CPU_arch: v6
Tag_ARM_ISA_use: Yes
+ Tag_THUMB_ISA_use: Thumb-1
Tag_ABI_VFP_args: VFP registers
Tag_compatibility: flag = 3, vendor = GNU
Tag_unknown_128: 1234 \(0x4d2\)