aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2008-08-22 07:21:49 +0000
committerJie Zhang <jie.zhang@analog.com>2008-08-22 07:21:49 +0000
commitfec8276095570d58a8d32a0956d831e0e58e4981 (patch)
tree61ada7cbc44715492e58f4334d4c60914e4f0897 /gas/testsuite
parent73e24c6845aa23ed023402152501009ed1dcc62f (diff)
downloadgdb-fec8276095570d58a8d32a0956d831e0e58e4981.zip
gdb-fec8276095570d58a8d32a0956d831e0e58e4981.tar.gz
gdb-fec8276095570d58a8d32a0956d831e0e58e4981.tar.bz2
* config/bfin-lex.l (NUMBER): Protect special `.'.
testsuite/ * gas/bfin/misc.s: New test. * gas/bfin/misc.d: New test. * gas/bfin/bfin.exp: Add misc test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/bfin/bfin.exp1
-rw-r--r--gas/testsuite/gas/bfin/misc.d9
-rw-r--r--gas/testsuite/gas/bfin/misc.s6
4 files changed, 22 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 03f6445..633a4b4 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-22 Jie Zhang <jie.zhang@analog.com>
+
+ * gas/bfin/misc.s: New test.
+ * gas/bfin/misc.d: New test.
+ * gas/bfin/bfin.exp: Add misc test.
+
2008-08-21 Richard Henderson <rth@redhat.com>
* gas/cfi/cfi-common-1.d: Allow for differing offsets, and
diff --git a/gas/testsuite/gas/bfin/bfin.exp b/gas/testsuite/gas/bfin/bfin.exp
index 2b8975b..e446346 100644
--- a/gas/testsuite/gas/bfin/bfin.exp
+++ b/gas/testsuite/gas/bfin/bfin.exp
@@ -18,6 +18,7 @@ if [istarget bfin*-*-*] {
run_dump_test "load"
run_dump_test "logical"
run_dump_test "logical2"
+ run_dump_test "misc"
run_dump_test "move"
run_dump_test "move2"
run_dump_test "parallel"
diff --git a/gas/testsuite/gas/bfin/misc.d b/gas/testsuite/gas/bfin/misc.d
new file mode 100644
index 0000000..6e0ff49
--- /dev/null
+++ b/gas/testsuite/gas/bfin/misc.d
@@ -0,0 +1,9 @@
+#objdump: -d
+#name: misc
+.*: +file format .*
+
+Disassembly of section .text:
+
+00000000 <_misc>:
+ 0: 00 e1 00 00 R0.L = 0x0;.*
+
diff --git a/gas/testsuite/gas/bfin/misc.s b/gas/testsuite/gas/bfin/misc.s
new file mode 100644
index 0000000..c2f7376
--- /dev/null
+++ b/gas/testsuite/gas/bfin/misc.s
@@ -0,0 +1,6 @@
+ .text
+ .global _misc
+_misc:
+ /* Check "0 & 0xffff" is parsed correctly. */
+ r0.l = 0 & 0xffff;
+