aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@arm.com>2016-05-17 16:35:12 +0100
committerThomas Preud'homme <thomas.preudhomme@arm.com>2016-05-17 16:38:11 +0100
commit659f032c0a57467e19a1d81aba7cf6df36ae689a (patch)
tree3ca9d721abd5a0fa12aa122790d12610bcfda147 /gas
parent1bdc036f254394412f32b2ae89a6575ececc7031 (diff)
downloadgdb-659f032c0a57467e19a1d81aba7cf6df36ae689a.zip
gdb-659f032c0a57467e19a1d81aba7cf6df36ae689a.tar.gz
gdb-659f032c0a57467e19a1d81aba7cf6df36ae689a.tar.bz2
Make ARMv8-M GAS tests pass on non ELF targets
2016-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com> gas/ * testsuite/gas/arm/archv8m-cmse-msr-base.d: Force Thumb when disassembling and stop skipping targets. * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise. * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise. * testsuite/gas/arm/archv8m-base.d: Also allow nops after the last instruction for targets that have stronger alignment requirement. * testsuite/gas/arm/archv8m-cmse-base.d: Likewise. * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise. * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise. * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise. * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise. * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise. * testsuite/gas/arm/archv8m-main.d: Likewise. * testsuite/gas/arm/archv8m.s: Add label. * testsuite/gas/arm/archv8m-cmse.s: Likewise. * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise. * testsuite/gas/arm/archv8m-cmse-main.s: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog20
-rw-r--r--gas/testsuite/gas/arm/archv8m-base.d4
-rw-r--r--gas/testsuite/gas/arm/archv8m-cmse-base.d4
-rw-r--r--gas/testsuite/gas/arm/archv8m-cmse-main-1.d4
-rw-r--r--gas/testsuite/gas/arm/archv8m-cmse-main-2.d4
-rw-r--r--gas/testsuite/gas/arm/archv8m-cmse-main.s1
-rw-r--r--gas/testsuite/gas/arm/archv8m-cmse-msr-base.d3
-rw-r--r--gas/testsuite/gas/arm/archv8m-cmse-msr-main.d3
-rw-r--r--gas/testsuite/gas/arm/archv8m-cmse-msr.s1
-rw-r--r--gas/testsuite/gas/arm/archv8m-cmse.s1
-rw-r--r--gas/testsuite/gas/arm/archv8m-main-dsp-1.d4
-rw-r--r--gas/testsuite/gas/arm/archv8m-main-dsp-2.d4
-rw-r--r--gas/testsuite/gas/arm/archv8m-main-dsp-3.d4
-rw-r--r--gas/testsuite/gas/arm/archv8m-main-dsp-4.d3
-rw-r--r--gas/testsuite/gas/arm/archv8m-main.d4
-rw-r--r--gas/testsuite/gas/arm/archv8m.s1
16 files changed, 43 insertions, 22 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index eea0f8b..745c13c 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,23 @@
+2016-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
+
+ * testsuite/gas/arm/archv8m-cmse-msr-base.d: Force Thumb when
+ disassembling and stop skipping targets.
+ * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
+ * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
+ * testsuite/gas/arm/archv8m-base.d: Also allow nops after the last
+ instruction for targets that have stronger alignment requirement.
+ * testsuite/gas/arm/archv8m-cmse-base.d: Likewise.
+ * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
+ * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
+ * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
+ * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
+ * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
+ * testsuite/gas/arm/archv8m-main.d: Likewise.
+ * testsuite/gas/arm/archv8m.s: Add label.
+ * testsuite/gas/arm/archv8m-cmse.s: Likewise.
+ * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise.
+ * testsuite/gas/arm/archv8m-cmse-main.s: Likewise.
+
2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-m32r.c (mach_table): Make static and const.
diff --git a/gas/testsuite/gas/arm/archv8m-base.d b/gas/testsuite/gas/arm/archv8m-base.d
index 60df240..6a2ee87 100644
--- a/gas/testsuite/gas/arm/archv8m-base.d
+++ b/gas/testsuite/gas/arm/archv8m-base.d
@@ -1,8 +1,7 @@
#name: ARM V8-M baseline instructions
#source: archv8m.s
#as: -march=armv8-m.base
-#objdump: -dr --prefix-addresses --show-raw-insn
-#skip: *-*-pe *-wince-* *-*-coff
+#objdump: -dr --prefix-addresses --show-raw-insn -M force-thumb
.*: +file format .*arm.*
@@ -46,3 +45,4 @@ Disassembly of section .text:
0+.* <[^>]*> e8c2 1fe0 stlex r0, r1, \[r2\]
0+.* <[^>]*> e8c2 1fc0 stlexb r0, r1, \[r2\]
0+.* <[^>]*> e8c2 1fd0 stlexh r0, r1, \[r2\]
+#...
diff --git a/gas/testsuite/gas/arm/archv8m-cmse-base.d b/gas/testsuite/gas/arm/archv8m-cmse-base.d
index ba6ff3a..2357637 100644
--- a/gas/testsuite/gas/arm/archv8m-cmse-base.d
+++ b/gas/testsuite/gas/arm/archv8m-cmse-base.d
@@ -1,8 +1,7 @@
#name: ARMv8-M Baseline Security Extensions instructions
#source: archv8m-cmse.s
#as: -march=armv8-m.base
-#objdump: -dr --prefix-addresses --show-raw-insn
-#skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
+#objdump: -dr --prefix-addresses --show-raw-insn -M force-thumb
.*: +file format .*arm.*
@@ -16,3 +15,4 @@ Disassembly of section .text:
0+.* <[^>]*> e849 f880 tta r8, r9
0+.* <[^>]*> e841 f0c0 ttat r0, r1
0+.* <[^>]*> e849 f8c0 ttat r8, r9
+#...
diff --git a/gas/testsuite/gas/arm/archv8m-cmse-main-1.d b/gas/testsuite/gas/arm/archv8m-cmse-main-1.d
index f4937df..edb3982 100644
--- a/gas/testsuite/gas/arm/archv8m-cmse-main-1.d
+++ b/gas/testsuite/gas/arm/archv8m-cmse-main-1.d
@@ -1,8 +1,7 @@
#name: ARMv8-M Mainline Security Extensions instructions (1)
#source: archv8m-cmse.s
#as: -march=armv8-m.main
-#objdump: -dr --prefix-addresses --show-raw-insn
-#skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
+#objdump: -dr --prefix-addresses --show-raw-insn -M force-thumb
.*: +file format .*arm.*
@@ -16,3 +15,4 @@ Disassembly of section .text:
0+.* <[^>]*> e849 f880 tta r8, r9
0+.* <[^>]*> e841 f0c0 ttat r0, r1
0+.* <[^>]*> e849 f8c0 ttat r8, r9
+#...
diff --git a/gas/testsuite/gas/arm/archv8m-cmse-main-2.d b/gas/testsuite/gas/arm/archv8m-cmse-main-2.d
index 0aa67e4..bf37ecc 100644
--- a/gas/testsuite/gas/arm/archv8m-cmse-main-2.d
+++ b/gas/testsuite/gas/arm/archv8m-cmse-main-2.d
@@ -1,11 +1,11 @@
#name: ARMv8-M Mainline Security Extensions instructions (2)
#source: archv8m-cmse-main.s
#as: -march=armv8-m.main
-#objdump: -dr --prefix-addresses --show-raw-insn
-#skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
+#objdump: -dr --prefix-addresses --show-raw-insn -M force-thumb
.*: +file format .*arm.*
Disassembly of section .text:
0+.* <[^>]*> ec31 0a00 vlldm r1
0+.* <[^>]*> ec22 0a00 vlstm r2
+#...
diff --git a/gas/testsuite/gas/arm/archv8m-cmse-main.s b/gas/testsuite/gas/arm/archv8m-cmse-main.s
index 069cad6..871414f 100644
--- a/gas/testsuite/gas/arm/archv8m-cmse-main.s
+++ b/gas/testsuite/gas/arm/archv8m-cmse-main.s
@@ -1,5 +1,6 @@
.thumb
.syntax unified
+T:
vlldm r1
vlstm r2
diff --git a/gas/testsuite/gas/arm/archv8m-cmse-msr-base.d b/gas/testsuite/gas/arm/archv8m-cmse-msr-base.d
index ded24ef..4bbb82d 100644
--- a/gas/testsuite/gas/arm/archv8m-cmse-msr-base.d
+++ b/gas/testsuite/gas/arm/archv8m-cmse-msr-base.d
@@ -1,8 +1,7 @@
#name: ARMv8-M Baseline Security Extensions MSR/MRS instructions
#source: archv8m-cmse-msr.s
#as: -march=armv8-m.base
-#objdump: -dr --prefix-addresses --show-raw-insn
-#skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
+#objdump: -dr --prefix-addresses --show-raw-insn -M force-thumb
.*: +file format .*arm.*
diff --git a/gas/testsuite/gas/arm/archv8m-cmse-msr-main.d b/gas/testsuite/gas/arm/archv8m-cmse-msr-main.d
index df53150..30a3361 100644
--- a/gas/testsuite/gas/arm/archv8m-cmse-msr-main.d
+++ b/gas/testsuite/gas/arm/archv8m-cmse-msr-main.d
@@ -1,8 +1,7 @@
#name: ARMv8-M Mainline Security Extensions MSR/MRS instructions
#source: archv8m-cmse-msr.s
#as: -march=armv8-m.main
-#objdump: -dr --prefix-addresses --show-raw-insn
-#skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
+#objdump: -dr --prefix-addresses --show-raw-insn -M force-thumb
.*: +file format .*arm.*
diff --git a/gas/testsuite/gas/arm/archv8m-cmse-msr.s b/gas/testsuite/gas/arm/archv8m-cmse-msr.s
index 4a61761..897be1a 100644
--- a/gas/testsuite/gas/arm/archv8m-cmse-msr.s
+++ b/gas/testsuite/gas/arm/archv8m-cmse-msr.s
@@ -1,3 +1,4 @@
+T:
msr MSP, r0
msr MSP_S, r0
msr MSP_NS, r0
diff --git a/gas/testsuite/gas/arm/archv8m-cmse.s b/gas/testsuite/gas/arm/archv8m-cmse.s
index 520550c..cac82c5 100644
--- a/gas/testsuite/gas/arm/archv8m-cmse.s
+++ b/gas/testsuite/gas/arm/archv8m-cmse.s
@@ -1,6 +1,7 @@
.thumb
.syntax unified
+T:
sg
blxns r4
blxns r9
diff --git a/gas/testsuite/gas/arm/archv8m-main-dsp-1.d b/gas/testsuite/gas/arm/archv8m-main-dsp-1.d
index 17714b8..c8f9d7b 100644
--- a/gas/testsuite/gas/arm/archv8m-main-dsp-1.d
+++ b/gas/testsuite/gas/arm/archv8m-main-dsp-1.d
@@ -1,8 +1,7 @@
#name: ARMv8-M Mainline with DSP instructions (base)
#source: archv8m.s
#as: -march=armv8-m.main+dsp
-#objdump: -dr --prefix-addresses --show-raw-insn
-#skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
+#objdump: -dr --prefix-addresses --show-raw-insn -M force-thumb
.*: +file format .*arm.*
@@ -46,3 +45,4 @@ Disassembly of section .text:
0+.* <[^>]*> e8c2 1fe0 stlex r0, r1, \[r2\]
0+.* <[^>]*> e8c2 1fc0 stlexb r0, r1, \[r2\]
0+.* <[^>]*> e8c2 1fd0 stlexh r0, r1, \[r2\]
+#...
diff --git a/gas/testsuite/gas/arm/archv8m-main-dsp-2.d b/gas/testsuite/gas/arm/archv8m-main-dsp-2.d
index 7730a03..59b860a 100644
--- a/gas/testsuite/gas/arm/archv8m-main-dsp-2.d
+++ b/gas/testsuite/gas/arm/archv8m-main-dsp-2.d
@@ -1,8 +1,7 @@
#name: ARMv8-M Mainline with DSP instructions (Security Extensions 1)
#source: archv8m-cmse.s
#as: -march=armv8-m.main+dsp
-#objdump: -dr --prefix-addresses --show-raw-insn
-#skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
+#objdump: -dr --prefix-addresses --show-raw-insn -M force-thumb
.*: +file format .*arm.*
@@ -16,3 +15,4 @@ Disassembly of section .text:
0+.* <[^>]*> e849 f880 tta r8, r9
0+.* <[^>]*> e841 f0c0 ttat r0, r1
0+.* <[^>]*> e849 f8c0 ttat r8, r9
+#...
diff --git a/gas/testsuite/gas/arm/archv8m-main-dsp-3.d b/gas/testsuite/gas/arm/archv8m-main-dsp-3.d
index fdd9c78..5ac1ddf 100644
--- a/gas/testsuite/gas/arm/archv8m-main-dsp-3.d
+++ b/gas/testsuite/gas/arm/archv8m-main-dsp-3.d
@@ -1,11 +1,11 @@
#name: ARMv8-M Mainline with DSP instructions (Security Extensions 2)
#source: archv8m-cmse-main.s
#as: -march=armv8-m.main+dsp
-#objdump: -dr --prefix-addresses --show-raw-insn
-#skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
+#objdump: -dr --prefix-addresses --show-raw-insn -M force-thumb
.*: +file format .*arm.*
Disassembly of section .text:
0+.* <[^>]*> ec31 0a00 vlldm r1
0+.* <[^>]*> ec22 0a00 vlstm r2
+#...
diff --git a/gas/testsuite/gas/arm/archv8m-main-dsp-4.d b/gas/testsuite/gas/arm/archv8m-main-dsp-4.d
index 1bb19ea..248f75e 100644
--- a/gas/testsuite/gas/arm/archv8m-main-dsp-4.d
+++ b/gas/testsuite/gas/arm/archv8m-main-dsp-4.d
@@ -1,8 +1,7 @@
#name: ARMv8-M Mainline with DSP instructions (Security Extensions 3)
#source: archv8m-cmse-msr.s
#as: -march=armv8-m.main+dsp
-#objdump: -dr --prefix-addresses --show-raw-insn
-#skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
+#objdump: -dr --prefix-addresses --show-raw-insn -M force-thumb
.*: +file format .*arm.*
diff --git a/gas/testsuite/gas/arm/archv8m-main.d b/gas/testsuite/gas/arm/archv8m-main.d
index 055721a..a0c40e9 100644
--- a/gas/testsuite/gas/arm/archv8m-main.d
+++ b/gas/testsuite/gas/arm/archv8m-main.d
@@ -1,8 +1,7 @@
#name: ARM V8-M mainline instructions
#source: archv8m.s
#as: -march=armv8-m.main
-#objdump: -dr --prefix-addresses --show-raw-insn
-#skip: *-*-pe *-wince-* *-*-coff
+#objdump: -dr --prefix-addresses --show-raw-insn -M force-thumb
.*: +file format .*arm.*
@@ -46,3 +45,4 @@ Disassembly of section .text:
0+.* <[^>]*> e8c2 1fe0 stlex r0, r1, \[r2\]
0+.* <[^>]*> e8c2 1fc0 stlexb r0, r1, \[r2\]
0+.* <[^>]*> e8c2 1fd0 stlexh r0, r1, \[r2\]
+#...
diff --git a/gas/testsuite/gas/arm/archv8m.s b/gas/testsuite/gas/arm/archv8m.s
index 8aca8ba..5f8aafe 100644
--- a/gas/testsuite/gas/arm/archv8m.s
+++ b/gas/testsuite/gas/arm/archv8m.s
@@ -1,6 +1,7 @@
.thumb
.syntax unified
+T:
blx r4
blx r9
bx r4