* config/bfin-lex.l (NUMBER): Protect special `.'.
authorJie Zhang <jie.zhang@analog.com>
Fri, 22 Aug 2008 07:21:49 +0000 (07:21 +0000)
committerJie Zhang <jie.zhang@analog.com>
Fri, 22 Aug 2008 07:21:49 +0000 (07:21 +0000)
testsuite/
* gas/bfin/misc.s: New test.
* gas/bfin/misc.d: New test.
* gas/bfin/bfin.exp: Add misc test.

gas/ChangeLog
gas/config/bfin-lex.l
gas/testsuite/ChangeLog
gas/testsuite/gas/bfin/bfin.exp
gas/testsuite/gas/bfin/misc.d [new file with mode: 0644]
gas/testsuite/gas/bfin/misc.s [new file with mode: 0644]

index 3066c52f49e84fb999e6c300f8d131738226e95b..5ab7202142227e4fc75bc1f09f4794c61e4ed656 100644 (file)
@@ -1,3 +1,7 @@
+2008-08-22  Jie Zhang  <jie.zhang@analog.com>
+
+       * config/bfin-lex.l (NUMBER): Protect special `.'.
+
 2008-08-22  Alan Modra  <amodra@bigpond.net.au>
 
        * symbols.c (symbol_clone): Ensure clones are not external.
index b2194dbfc54ce84ce52b676da22767d8d43adfd0..d74c7f39570e4d5b3ea679ea69f2d7240ae87e49 100644 (file)
@@ -293,7 +293,7 @@ abort                                   return ABORT;
 <KEYWORD>[iI][fF][lL][uU][sS][hH]                return IFLUSH;
 <KEYWORD>[fF][lL][uU][sS][hH][iI][nN][vV]        return FLUSHINV;
 <KEYWORD>[fF][lL][uU][sS][hH]                    return FLUSH;
-([0-9]+)|(0[xX][0-9a-fA-F]+)|([bhfodBHOFD]#[0-9a-fA-F]+)|(0.[0-9]+) {
+([0-9]+)|(0[xX][0-9a-fA-F]+)|([bhfodBHOFD]#[0-9a-fA-F]+)|(0"."[0-9]+) {
     yylval.value = parse_int (&yytext);
     return NUMBER;
   }
index 03f64458f0229926d6d69d034dd91ba46c584f3a..633a4b473242cde7f725eefd4da5cb0bfde41bb2 100644 (file)
@@ -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
index 2b8975be74c1a961631899fbdf8dfa2cb91b75eb..e4463463995a45707a64ece574a64766b5fe28e1 100644 (file)
@@ -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 (file)
index 0000000..6e0ff49
--- /dev/null
@@ -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 (file)
index 0000000..c2f7376
--- /dev/null
@@ -0,0 +1,6 @@
+       .text
+       .global _misc
+_misc:
+       /* Check "0 & 0xffff" is parsed correctly.  */
+       r0.l = 0 & 0xffff;
+