aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2011-01-06 14:30:43 +0000
committerNathan Sidwell <nathan@codesourcery.com>2011-01-06 14:30:43 +0000
commit639e30d29765fab6d78246ce4bb0d7a0f893d85d (patch)
tree946d7115878d6b7a3a9ff10f6c8f85f77354a1d9 /gas
parent9849fbfc4110f61ba10aa4a4d9114f3b6ac62237 (diff)
downloadgdb-639e30d29765fab6d78246ce4bb0d7a0f893d85d.zip
gdb-639e30d29765fab6d78246ce4bb0d7a0f893d85d.tar.gz
gdb-639e30d29765fab6d78246ce4bb0d7a0f893d85d.tar.bz2
gas/testsuite/
* gas/arm/blx-bad.s: New. * gas/arm/blx-bad.d: New. opcodes/ * arm-dis.c (thumb32_opcodes): BLX must have bit zero clear.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/arm/blx-bad.d21
-rw-r--r--gas/testsuite/gas/arm/blx-bad.s16
3 files changed, 42 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index b8ad2c3..a558102 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-05 Nathan Sidwell <nathan@codesourcery.com>
+
+ * gas/arm/blx-bad.s: New.
+ * gas/arm/blx-bad.d: New.
+
2011-01-04 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/bmi-intel.d: New.
diff --git a/gas/testsuite/gas/arm/blx-bad.d b/gas/testsuite/gas/arm/blx-bad.d
new file mode 100644
index 0000000..34f70cc
--- /dev/null
+++ b/gas/testsuite/gas/arm/blx-bad.d
@@ -0,0 +1,21 @@
+#objdump: -drw --show-raw-insn
+#name: BLX encoding
+
+.*: file format .*arm.*
+
+
+Disassembly of section .text:
+
+00000000 <ARM>:
+ 0: e1a00000 nop ; \(mov r0, r0\)
+
+00000004 <THUMB>:
+ 4: f7ff effc blx 0 <ARM>
+ 8: 46c0 nop ; \(mov r8, r8\)
+ a: f7ff effa blx 0 <ARM>
+ e: 46c0 nop ; \(mov r8, r8\)
+ 10: f7ff eff6 blx 0 <ARM>
+ 14: f7ff eff5 ; <UNDEFINED> instruction: 0xf7ffeff5
+ 18: 46c0 nop ; \(mov r8, r8\)
+ 1a: f7ff eff1 ; <UNDEFINED> instruction: 0xf7ffeff1
+ 1e: f7ff eff0 blx 0 <ARM>
diff --git a/gas/testsuite/gas/arm/blx-bad.s b/gas/testsuite/gas/arm/blx-bad.s
new file mode 100644
index 0000000..cbc9c53
--- /dev/null
+++ b/gas/testsuite/gas/arm/blx-bad.s
@@ -0,0 +1,16 @@
+ .arm
+ .func ARM
+ARM: nop
+
+ .thumb
+ .thumb_func
+THUMB:
+ blx ARM
+ nop
+ blx ARM
+ nop
+ .inst 0xf7ffeff6
+ .inst 0xf7ffeff5
+ nop
+ .inst 0xf7ffeff1
+ .inst 0xf7ffeff0