diff options
author | Mark Shinwell <shinwell@codesourcery.com> | 2007-05-15 10:06:03 +0000 |
---|---|---|
committer | Mark Shinwell <shinwell@codesourcery.com> | 2007-05-15 10:06:03 +0000 |
commit | 2a67688880dc1a9cbb6308c22ea6e62ff4c51297 (patch) | |
tree | c63c926151d8c1fbd573b9f824e853d21fb2708a /gas/testsuite | |
parent | a00a1f35e162a3eb8294f994c36fce1b470e106c (diff) | |
download | gdb-2a67688880dc1a9cbb6308c22ea6e62ff4c51297.zip gdb-2a67688880dc1a9cbb6308c22ea6e62ff4c51297.tar.gz gdb-2a67688880dc1a9cbb6308c22ea6e62ff4c51297.tar.bz2 |
gas/
* app.c (do_scrub_chars): Don't damage \@ pseudo-variables.
gas/testsuite/
* gas/arm/backslash-at.d: New.
* gas/arm/backslash-at.s: New.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/backslash-at.d | 16 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/backslash-at.s | 16 |
3 files changed, 37 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 4b4b2db..05e191e 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-05-15 Mark Shinwell <shinwell@codesourcery.com> + + * gas/arm/backslash-at.d: New. + * gas/arm/backslash-at.s: New. + 2007-05-15 Vincent Riviere <vincent.riviere@freesbee.fr> Nick Clifton <nickc@redhat.com> diff --git a/gas/testsuite/gas/arm/backslash-at.d b/gas/testsuite/gas/arm/backslash-at.d new file mode 100644 index 0000000..a51def5 --- /dev/null +++ b/gas/testsuite/gas/arm/backslash-at.d @@ -0,0 +1,16 @@ +#objdump: -dr --prefix-addresses --show-raw-insn +#name: Backslash-at for ARM + +.*: file format .*arm.* + +Disassembly of section .text: +00000000 <.text> 615c .short 0x615c +00000002 <foo> e3a00000 mov r0, #0 ; 0x0 +00000006 <foo\+0x4> e3a00000 mov r0, #0 ; 0x0 +0000000a <foo\+0x8> e3a00000 mov r0, #0 ; 0x0 +0000000e <foo\+0xc> e3a00001 mov r0, #1 ; 0x1 +00000012 <foo\+0x10> e3a00001 mov r0, #1 ; 0x1 +00000016 <foo\+0x14> e3a00001 mov r0, #1 ; 0x1 +0000001a <foo\+0x18> e3a00002 mov r0, #2 ; 0x2 +0000001e <foo\+0x1c> e3a00002 mov r0, #2 ; 0x2 +00000022 <foo\+0x20> e3a00002 mov r0, #2 ; 0x2 diff --git a/gas/testsuite/gas/arm/backslash-at.s b/gas/testsuite/gas/arm/backslash-at.s new file mode 100644 index 0000000..4975aea --- /dev/null +++ b/gas/testsuite/gas/arm/backslash-at.s @@ -0,0 +1,16 @@ +@ Check that \@ is not destroyed when assembling for the ARM. + +.macro bar + mov r0, #\@ + mov r0, #\@@comment + mov r0, #\@ @comment +.endm + +.byte '\\ +.byte '\a + +foo: + bar + bar + bar + |