diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2012-07-24 16:38:35 +0000 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2012-07-24 16:38:35 +0000 |
commit | 5e73442d4c1ea1261339be580fb0f12bdc4b9e29 (patch) | |
tree | cf0ba2c8d4a417066f1db3dd93ac5ebc4fc0ea70 /gas/testsuite | |
parent | 108fb0f719bbf3f627d6ff34ba0f26b67aa971b5 (diff) | |
download | gdb-5e73442d4c1ea1261339be580fb0f12bdc4b9e29.zip gdb-5e73442d4c1ea1261339be580fb0f12bdc4b9e29.tar.gz gdb-5e73442d4c1ea1261339be580fb0f12bdc4b9e29.tar.bz2 |
2012-07-24 Sandra Loosemore <sandra@codesourcery.com>
Jie Zhang <jzhang918@gmail.com>
gas/
* config/tc-arm.c (md_apply_fix): Use encoding A2 of ADR
if offset is negative.
gas/testsuite/
* gas/arm/adr.d: New test.
* gas/arm/adr.s: New test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/adr.d | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/adr.s | 5 |
3 files changed, 20 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 756b9d2..85968f8 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2012-07-24 Sandra Loosemore <sandra@codesourcery.com> + Jie Zhang <jzhang918@gmail.com> + + * gas/arm/adr.d: New test. + * gas/arm/adr.s: New test. + 2012-07-16 Michael Zolotukhin <michael.v.zolotukhin@intel.com> * gas/i386/i386.exp: Run adx, rdseed and prefetchw tests. diff --git a/gas/testsuite/gas/arm/adr.d b/gas/testsuite/gas/arm/adr.d new file mode 100644 index 0000000..ee74154 --- /dev/null +++ b/gas/testsuite/gas/arm/adr.d @@ -0,0 +1,9 @@ +#objdump: -dr --prefix-addresses --show-raw-insn +#name: ADR + +# Test the `ADR' pseudo-op + +.*: +file format .*arm.* + +Disassembly of section .text: +0+ <.*> 824ff203 subhi pc, pc, #805306368 ; 0x30000000 diff --git a/gas/testsuite/gas/arm/adr.s b/gas/testsuite/gas/arm/adr.s new file mode 100644 index 0000000..5d8ea2b --- /dev/null +++ b/gas/testsuite/gas/arm/adr.s @@ -0,0 +1,5 @@ + @ test ADR pseudo-op + .text + .global foo +foo: + adrhi pc, . - 0x2ffffff8 |