PR gas/5712
authorNick Clifton <nickc@redhat.com>
Thu, 14 Feb 2008 16:35:51 +0000 (16:35 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 14 Feb 2008 16:35:51 +0000 (16:35 +0000)
        * config/tc-arm.c (s_arm_unwind_save): Advance the input line
        pointer past the comma after parsing a floating point register
        name.

        * gas/arm/fp-save.s: New test.
        * gas/arm/fp-save.d: Expected disassembly.

gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/fp-save.d [new file with mode: 0644]
gas/testsuite/gas/arm/fp-save.s [new file with mode: 0644]

index 38ae551a6650937b3a4abebfc1656513ae42beee..679b3ff3754a0e8183c974b45500cc4d2ef37285 100644 (file)
@@ -1,3 +1,10 @@
+2008-02-14  Dimitry Andric  <dimitry@andric.com>
+
+       PR gas/5712
+       * config/tc-arm.c (s_arm_unwind_save): Advance the input line
+       pointer past the comma after parsing a floating point register
+       name.
+
 2008-02-14  Hakan Ardo  <hakan@debian.org>
 
        PR gas/2626
index a35204c5e198aca0ce710170150e6d488342aea8..412db5f7bb80171a6f33b2343445028061dfac08 100644 (file)
@@ -3670,6 +3670,7 @@ s_arm_unwind_save (int arch_v6)
          ignore_rest_of_line ();
          return;
        }
+      input_line_pointer = peek;
       s_arm_unwind_save_fpa (reg->number);
       return;
 
index d778fe054a4140f48802e5778de1203f37acf00e..eef8a7bfff2522fd262dfda12ad560190aacf1c7 100644 (file)
@@ -1,3 +1,9 @@
+2008-02-14  Nick Clifton  <nickc@redhat.com>
+
+       PR gas/5712
+       * gas/arm/fp-save.s: New test.
+       * gas/arm/fp-save.d: Expected disassembly.
+
 2008-02-13  Adam Nemet  <anemet@caviumnetworks.com>
 
        * gas/mips/branch-misc-2pic-64.d (#name): Have a unique name
diff --git a/gas/testsuite/gas/arm/fp-save.d b/gas/testsuite/gas/arm/fp-save.d
new file mode 100644 (file)
index 0000000..d32d930
--- /dev/null
@@ -0,0 +1,9 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: PR5712 - saving FP registers
+#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-riscix*
+#as: -mfpu=fpa
+
+.*: *file format .*arm.*
+
+Disassembly of section .text:
+0+00 <[^>]*> ed2dc203[         ]+sfm[  ]+f4, 1, \[sp, #-12\]!
diff --git a/gas/testsuite/gas/arm/fp-save.s b/gas/testsuite/gas/arm/fp-save.s
new file mode 100644 (file)
index 0000000..d86d749
--- /dev/null
@@ -0,0 +1,2 @@
+       sfmfd   f4, 1, [sp]!\r
+       .save f4, 1\r