Arm: Clean up PE GAS testsuite correct THUMB tests.
authorTamar Christina <tamar.christina@arm.com>
Thu, 17 Jan 2019 16:05:37 +0000 (16:05 +0000)
committerTamar Christina <tamar.christina@arm.com>
Thu, 17 Jan 2019 16:06:31 +0000 (16:06 +0000)
The PE targets don't support mapping symbols and so the disassembler is unable
to correctly output thumb instructions when the input was thumb.

So for testcases that only have thumb output, I have copied them and skipped the
ones for which auto-detection is supposed to work on PE, and added a new one
that will force thumb output.  This so that the tests still check the mapping
symbols.

For the tests that switch between thumb and arm in one file I just skip them
entirely on PE targets.

This cleans up the PE GAS testsuite.

gas/

* testsuite/gas/arm/archv6t2-1-pe.d: New test.
* testsuite/gas/arm/archv6t2-1.d: Skip pe.
* testsuite/gas/arm/csdb.d: Skip pe.
* testsuite/gas/arm/sb-thumb1-pe.d: New test.
* testsuite/gas/arm/sb-thumb1.d: Skip pe.
* testsuite/gas/arm/sb-thumb2-pe.d: New test.
* testsuite/gas/arm/sb-thumb2.d: Skip pe.
* testsuite/gas/arm/udf.d: Skip pe.

gas/ChangeLog
gas/testsuite/gas/arm/archv6t2-1-pe.d [new file with mode: 0644]
gas/testsuite/gas/arm/archv6t2-1.d
gas/testsuite/gas/arm/csdb.d
gas/testsuite/gas/arm/sb-thumb1-pe.d [new file with mode: 0644]
gas/testsuite/gas/arm/sb-thumb1.d
gas/testsuite/gas/arm/sb-thumb2-pe.d [new file with mode: 0644]
gas/testsuite/gas/arm/sb-thumb2.d
gas/testsuite/gas/arm/udf.d

index cd80c48..d3aa8dc 100644 (file)
@@ -1,3 +1,14 @@
+2019-01-17  Tamar Christina  <tamar.christina@arm.com>
+
+       * testsuite/gas/arm/archv6t2-1-pe.d: New test.
+       * testsuite/gas/arm/archv6t2-1.d: Skip pe.
+       * testsuite/gas/arm/csdb.d: Skip pe.
+       * testsuite/gas/arm/sb-thumb1-pe.d: New test.
+       * testsuite/gas/arm/sb-thumb1.d: Skip pe.
+       * testsuite/gas/arm/sb-thumb2-pe.d: New test.
+       * testsuite/gas/arm/sb-thumb2.d: Skip pe.
+       * testsuite/gas/arm/udf.d: Skip pe.
+
 2019-01-16  Kito Cheng  <kito@andestech.com>
 
        * testsuite/gas/riscv/attribute-empty.d: New.
diff --git a/gas/testsuite/gas/arm/archv6t2-1-pe.d b/gas/testsuite/gas/arm/archv6t2-1-pe.d
new file mode 100644 (file)
index 0000000..5f98e61
--- /dev/null
@@ -0,0 +1,12 @@
+# name: ARMv6T2 THUMB mode
+# as: -march=armv6t2 -mthumb
+# source: archv6t2-1.s
+# objdump: -dr --prefix-addresses --show-raw-insn -M force-thumb
+
+.*: +file format .*arm.*
+
+Disassembly of section .text:
+0[0-9a-f]+ <[^>]+> bf10        yield
+0[0-9a-f]+ <[^>]+> bf20        wfe
+0[0-9a-f]+ <[^>]+> bf30        wfi
+0[0-9a-f]+ <[^>]+> bf40        sev
index a4b4c34..49853ea 100644 (file)
@@ -2,6 +2,7 @@
 # as: -march=armv6t2 -mthumb
 # source: archv6t2-1.s
 # objdump: -dr --prefix-addresses --show-raw-insn
+# skip: *-*-pe *-*-wince
 
 .*: +file format .*arm.*
 
index db73907..0ba5b6f 100644 (file)
@@ -1,6 +1,7 @@
 #name: CSDB
 #source: csdb.s
 #objdump: -dr --prefix-addresses --show-raw-insn
+#skip: *-*-pe *-*-wince
 
 .*: +file format .*arm.*
 
diff --git a/gas/testsuite/gas/arm/sb-thumb1-pe.d b/gas/testsuite/gas/arm/sb-thumb1-pe.d
new file mode 100644 (file)
index 0000000..850c93f
--- /dev/null
@@ -0,0 +1,11 @@
+#objdump: -dr --prefix-addresses --show-raw-insn -M force-thumb
+#name: SB instruction (Thumb)
+#source: sb.s
+#as: -march=armv8.5-a -mthumb
+
+# Test SB Instruction
+
+.*: *file format .*arm.*
+
+Disassembly of section .text:
+.*> f3bf 8f70  sb
index dc3bc49..3ee5513 100644 (file)
@@ -2,8 +2,9 @@
 #name: SB instruction (Thumb)
 #source: sb.s
 #as: -march=armv8.5-a -mthumb
+#skip: *-*-pe *-*-wince
 
-# Test SB Instructio
+# Test SB Instruction
 
 .*: *file format .*arm.*
 
diff --git a/gas/testsuite/gas/arm/sb-thumb2-pe.d b/gas/testsuite/gas/arm/sb-thumb2-pe.d
new file mode 100644 (file)
index 0000000..681d985
--- /dev/null
@@ -0,0 +1,11 @@
+#objdump: -dr --prefix-addresses --show-raw-insn -M force-thumb
+#name: SB instruction (Thumb) with +sb
+#source: sb.s
+#as: -march=armv8-a+sb -mthumb
+
+# Test SB Instructio
+
+.*: *file format .*arm.*
+
+Disassembly of section .text:
+.*> f3bf 8f70  sb
index 892ca8f..c9badee 100644 (file)
@@ -2,6 +2,7 @@
 #name: SB instruction (Thumb) with +sb
 #source: sb.s
 #as: -march=armv8-a+sb -mthumb
+#skip: *-*-pe *-*-wince
 
 # Test SB Instructio
 
index ef24209..f53a437 100644 (file)
@@ -2,6 +2,7 @@
 #name: UDF
 #as: -march=armv8-a
 #warning_output: udf.l
+#skip: *-*-pe *-*-wince
 
 .*: +file format .*arm.*