Add tests for gas arch autodetection on ARM
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Thu, 24 Dec 2015 08:50:26 +0000 (16:50 +0800)
committerThomas Preud'homme <thomas.preudhomme@arm.com>
Thu, 24 Dec 2015 08:54:21 +0000 (16:54 +0800)
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.

23 files changed:
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/automatic-bw.d [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-bw.s [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-cbz.d [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-cbz.s [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-clrex.d [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-clrex.s [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-lda.d [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-lda.s [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-ldaex.d [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-ldaex.s [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-ldaexb.d [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-ldaexb.s [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-ldrex.d [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-ldrex.s [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-ldrexd.d [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-ldrexd.s [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-movw.d [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-movw.s [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-sdiv.d [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-sdiv.s [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-strexb.d [new file with mode: 0644]
gas/testsuite/gas/arm/automatic-strexb.s [new file with mode: 0644]

index 0808b297a9934d4a00a1084f93bd0f018fce80f8..eac24c25c7e8c5ca0df339933cd07dc91cc8046f 100644 (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
diff --git a/gas/testsuite/gas/arm/automatic-bw.d b/gas/testsuite/gas/arm/automatic-bw.d
new file mode 100644 (file)
index 0000000..d8cf543
--- /dev/null
@@ -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 (file)
index 0000000..1fdebe2
--- /dev/null
@@ -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 (file)
index 0000000..d8cf543
--- /dev/null
@@ -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 (file)
index 0000000..523610e
--- /dev/null
@@ -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 (file)
index 0000000..d8cf543
--- /dev/null
@@ -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 (file)
index 0000000..d4e6a36
--- /dev/null
@@ -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 (file)
index 0000000..02bb7a4
--- /dev/null
@@ -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 (file)
index 0000000..4c257e1
--- /dev/null
@@ -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 (file)
index 0000000..02bb7a4
--- /dev/null
@@ -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 (file)
index 0000000..c36e6fb
--- /dev/null
@@ -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 (file)
index 0000000..02bb7a4
--- /dev/null
@@ -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 (file)
index 0000000..47459cc
--- /dev/null
@@ -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 (file)
index 0000000..d8cf543
--- /dev/null
@@ -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 (file)
index 0000000..9a51984
--- /dev/null
@@ -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 (file)
index 0000000..d8cf543
--- /dev/null
@@ -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 (file)
index 0000000..c6a728b
--- /dev/null
@@ -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 (file)
index 0000000..d8cf543
--- /dev/null
@@ -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 (file)
index 0000000..71fbd69
--- /dev/null
@@ -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 (file)
index 0000000..c2e5750
--- /dev/null
@@ -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 (file)
index 0000000..09957d8
--- /dev/null
@@ -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 (file)
index 0000000..d8cf543
--- /dev/null
@@ -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 (file)
index 0000000..480e52f
--- /dev/null
@@ -0,0 +1,3 @@
+.thumb
+.syntax unified
+strexb r0, r1, [r2]