From 93ac268764b7d1a8c0582c787c712aad0672e732 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 14 Feb 2008 16:35:51 +0000 Subject: [PATCH] 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. * gas/arm/fp-save.s: New test. * gas/arm/fp-save.d: Expected disassembly. --- gas/ChangeLog | 7 +++++++ gas/config/tc-arm.c | 1 + gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/gas/arm/fp-save.d | 9 +++++++++ gas/testsuite/gas/arm/fp-save.s | 2 ++ 5 files changed, 25 insertions(+) create mode 100644 gas/testsuite/gas/arm/fp-save.d create mode 100644 gas/testsuite/gas/arm/fp-save.s diff --git a/gas/ChangeLog b/gas/ChangeLog index 38ae551a665..679b3ff3754 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2008-02-14 Dimitry Andric + + 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 PR gas/2626 diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index a35204c5e19..412db5f7bb8 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -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; diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index d778fe054a4..eef8a7bfff2 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-02-14 Nick Clifton + + PR gas/5712 + * gas/arm/fp-save.s: New test. + * gas/arm/fp-save.d: Expected disassembly. + 2008-02-13 Adam Nemet * 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 index 00000000000..d32d93065fd --- /dev/null +++ b/gas/testsuite/gas/arm/fp-save.d @@ -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 index 00000000000..d86d7493523 --- /dev/null +++ b/gas/testsuite/gas/arm/fp-save.s @@ -0,0 +1,2 @@ + sfmfd f4, 1, [sp]! + .save f4, 1 -- 2.30.2