diff options
author | Paul Brook <paul@codesourcery.com> | 2007-03-14 21:12:13 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2007-03-14 21:12:13 +0000 |
commit | a861eba5ca7afdc22f95c3d2b7c713095781fece (patch) | |
tree | 1af204ac3b17550bc86014c85789d11e2e9e4dc0 | |
parent | 9f52cc7aac1af7a7078ffd8140173c14cf1c884a (diff) | |
download | binutils-redhat-a861eba5ca7afdc22f95c3d2b7c713095781fece.tar.gz |
2007-03-14 Paul Brook <paul@codesourcery.com>
gas/
* config/tc-arm.c (T16_32_TAB): Fix dec_sp encoding.
gas/testsuite/
* gas/arm/thumb2_add.d: Add tests using sp.
* gas/arm/thumb2_add.s: Ditto.
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/tc-arm.c | 2 | ||||
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/thumb2_add.d | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/thumb2_add.s | 10 |
5 files changed, 30 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 64802abc3d..4c212dbaaf 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2007-03-14 Paul Brook <paul@codesourcery.com> + + * config/tc-arm.c (T16_32_TAB): Fix dec_sp encoding. + 2007-03-14 Alan Modra <amodra@bigpond.net.au> PR 4029 diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 9872968b62..9822ab53e7 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -8244,7 +8244,7 @@ encode_thumb32_addr_mode (int i, bfd_boolean is_t, bfd_boolean is_d) X(cpsie, b660, f3af8400), \ X(cpsid, b670, f3af8600), \ X(cpy, 4600, ea4f0000), \ - X(dec_sp,80dd, f1bd0d00), \ + X(dec_sp,80dd, f1ad0d00), \ X(eor, 4040, ea800000), \ X(eors, 4040, ea900000), \ X(inc_sp,00dd, f10d0d00), \ diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 51bf86fc35..a498537e66 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-03-14 Paul Brook <paul@codesourcery.com> + + * gas/arm/thumb2_add.d: Add tests using sp. + * gas/arm/thumb2_add.s: Ditto. + 2007-03-14 Alan Modra <amodra@bigpond.net.au> PR 4029 diff --git a/gas/testsuite/gas/arm/thumb2_add.d b/gas/testsuite/gas/arm/thumb2_add.d index c63e5e6c70..2d975258e5 100644 --- a/gas/testsuite/gas/arm/thumb2_add.d +++ b/gas/testsuite/gas/arm/thumb2_add.d @@ -18,3 +18,13 @@ Disassembly of section .text: 0+02c <[^>]+> f2a1 1301 subw r3, r1, #257 ; 0x101 0+030 <[^>]+> f103 0301 add.w r3, r3, #1 ; 0x1 0+034 <[^>]+> f1a3 0301 sub.w r3, r3, #1 ; 0x1 +0+038 <[^>]+> b0c0 sub sp, #256 +0+03a <[^>]+> f5ad 7d00 sub.w sp, sp, #512 ; 0x200 +0+03e <[^>]+> f2ad 1d01 subw sp, sp, #257 ; 0x101 +0+042 <[^>]+> b040 add sp, #256 +0+044 <[^>]+> f50d 7d00 add.w sp, sp, #512 ; 0x200 +0+048 <[^>]+> f20d 1d01 addw sp, sp, #257 ; 0x101 +0+04c <[^>]+> a840 add r0, sp, #256 +0+04e <[^>]+> f50d 6580 add.w r5, sp, #1024 ; 0x400 +0+052 <[^>]+> f20d 1901 addw r9, sp, #257 ; 0x101 +0+056 <[^>]+> bf00 nop diff --git a/gas/testsuite/gas/arm/thumb2_add.s b/gas/testsuite/gas/arm/thumb2_add.s index 70ab86cd3f..3dcd3138fe 100644 --- a/gas/testsuite/gas/arm/thumb2_add.s +++ b/gas/testsuite/gas/arm/thumb2_add.s @@ -19,3 +19,13 @@ thumb2_add: sub r3, r1, #0x101 add r3, #1 sub r3, #1 + sub sp, sp, #0x100 + sub sp, sp, #0x200 + sub sp, sp, #0x101 + add sp, sp, #0x100 + add sp, sp, #0x200 + add sp, sp, #0x101 + add r0, sp, #0x100 + add r5, sp, #0x400 + add r9, sp, #0x101 + nop |