aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorRichard Earnshaw <richard.earnshaw@arm.com>2002-01-19 14:25:48 +0000
committerRichard Earnshaw <richard.earnshaw@arm.com>2002-01-19 14:25:48 +0000
commitea6ef066f8a95ee7f5aefe4a67a300e3faa43efe (patch)
tree68dd8d5cadb517fb7c47b79ff9b1fac1cfd2f993 /gas/testsuite
parent4604bcad46e5f1dc5aa75bd730e15169b2d1d68c (diff)
downloadgdb-ea6ef066f8a95ee7f5aefe4a67a300e3faa43efe.zip
gdb-ea6ef066f8a95ee7f5aefe4a67a300e3faa43efe.tar.gz
gdb-ea6ef066f8a95ee7f5aefe4a67a300e3faa43efe.tar.bz2
2002-01-18 Richard Earnshaw <rearnsha@arm.com>
Keith Walker <keith.walker@arm.com> * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define. (insns): Add pattern for bxj instruction. (do_bxj): New function. (arm_cpus): Add arm926ej. (arm_archs): Add armv5tej. Testsuite: 2002-01-18 Richard Earnshaw <rearnsha@arm.com> Keith Walker <keith.walker@arm.com> * gas/arm/arch5tej.s gas/arm/arch5tej.d: New files. * gas/arm/arm.exp (arch5tej): New dump test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/arm/arch5tej.d15
-rw-r--r--gas/testsuite/gas/arm/arch5tej.s9
-rw-r--r--gas/testsuite/gas/arm/arm.exp2
4 files changed, 32 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index db08e51..a26c5ae 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,4 +1,10 @@
2002-01-18 Richard Earnshaw <rearnsha@arm.com>
+ Keith Walker <keith.walker@arm.com>
+
+ * gas/arm/arch5tej.s gas/arm/arch5tej.d: New files.
+ * gas/arm/arm.exp (arch5tej): New dump test.
+
+2002-01-18 Richard Earnshaw <rearnsha@arm.com>
* gas/arm/vfp1.d: Use new command-line options.
* gas/arm/vfp1xD.d: Likewise.
diff --git a/gas/testsuite/gas/arm/arch5tej.d b/gas/testsuite/gas/arm/arch5tej.d
new file mode 100644
index 0000000..a4bcdde
--- /dev/null
+++ b/gas/testsuite/gas/arm/arch5tej.d
@@ -0,0 +1,15 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: ARM Architecture v5TEJ instructions
+#as: -march=armv5tej
+
+# Test the ARM Architecture v5TEJ instructions
+
+.*: +file format .*arm.*
+
+Disassembly of section .text:
+0+00 <[^>]*> e12fff20 ? bxj r0
+0+04 <[^>]*> e12fff21 ? bxj r1
+0+08 <[^>]*> e12fff2e ? bxj lr
+0+0c <[^>]*> 012fff20 ? bxjeq r0
+0+10 <[^>]*> 412fff20 ? bxjmi r0
+0+14 <[^>]*> 512fff27 ? bxjpl r7
diff --git a/gas/testsuite/gas/arm/arch5tej.s b/gas/testsuite/gas/arm/arch5tej.s
new file mode 100644
index 0000000..f4735ff
--- /dev/null
+++ b/gas/testsuite/gas/arm/arch5tej.s
@@ -0,0 +1,9 @@
+ .text
+ .align 0
+label:
+ bxj r0
+ bxj r1
+ bxj r14
+ bxjeq r0
+ bxjmi r0
+ bxjpl r7
diff --git a/gas/testsuite/gas/arm/arm.exp b/gas/testsuite/gas/arm/arm.exp
index 4faa8ce..0f6d8f0 100644
--- a/gas/testsuite/gas/arm/arm.exp
+++ b/gas/testsuite/gas/arm/arm.exp
@@ -35,6 +35,8 @@ if {[istarget *arm*-*-*] || [istarget "xscale-*-*"]} then {
gas_test "arch4t.s" "-marmv4t" $stdoptlist "Arm architecture 4t instructions"
+ run_dump_test "arch5tej"
+
gas_test "copro.s" "" $stdoptlist "Co processor instructions"
gas_test "immed.s" "" $stdoptlist "immediate expressions"