2007-01-11 Paul Brook <paul@codesourcery.com>
authorPaul Brook <paul@codesourcery.com>
Thu, 11 Jan 2007 15:39:08 +0000 (15:39 +0000)
committerPaul Brook <paul@codesourcery.com>
Thu, 11 Jan 2007 15:39:08 +0000 (15:39 +0000)
gas/
* config/tc-arm.c (do_t_add_sub): Use Rd and Rs.

gas/testsuite/
* gas/arm/thumb2_add.d: Add test for missing operand.
* gas/arm/thumb2_add.s: Ditto.

gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/thumb2_add.d
gas/testsuite/gas/arm/thumb2_add.s

index 21c82999659274487b4defdce587138168bb61f1..b3afb4bd15eac864b2faa271447980b19dd54034 100644 (file)
@@ -1,3 +1,7 @@
+2007-01-11  Paul Brook  <paul@codesourcery.com>
+
+       * config/tc-arm.c (do_t_add_sub): Use Rd and Rs.
+
 2007-01-11  Nick Clifton  <nickc@redhat.com>
 
        PR gas/3707
index 6a2756decd76d0fa09db4bdf74bea256a3ec2388..4f341cb9f81e0b329913243056657b524612f37f 100644 (file)
@@ -8414,8 +8414,8 @@ do_t_add_sub (void)
                  else
                    inst.reloc.type = BFD_RELOC_ARM_T32_ADD_IMM;
                }
-             inst.instruction |= inst.operands[0].reg << 8;
-             inst.instruction |= inst.operands[1].reg << 16;
+             inst.instruction |= Rd << 8;
+             inst.instruction |= Rs << 16;
            }
        }
       else
index 06360e9e8a5bee56df89f51aebfb92dd03c6c2be..6001e8ee82df1dd42ce043db4c060ff1036efdb7 100644 (file)
@@ -1,3 +1,8 @@
+2007-01-11  Paul Brook  <paul@codesourcery.com>
+
+       * gas/arm/thumb2_add.d: Add test for missing operand.
+       * gas/arm/thumb2_add.s: Ditto.
+
 2007-01-11  Nick Clifton  <nickc@redhat.com>
 
        * gas/mcore/allinsn.s: Remove use of '#' before numbers - it is a
index 6331acfc2f4fa449c4f4926b606c1e4f0addf566..c63e5e6c70c93220435052ff62adc643ed931450 100644 (file)
@@ -16,3 +16,5 @@ Disassembly of section .text:
 0+024 <[^>]+> f5a9 6880        sub.w   r8, r9, #1024   ; 0x400
 0+028 <[^>]+> f2a9 1801        subw    r8, r9, #257    ; 0x101
 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
index c1803863e79f5e54c5a7aa81bfed104a4f6f6e27..70ab86cd3ff601ee84c3131ed87311e356593327 100644 (file)
@@ -17,3 +17,5 @@ thumb2_add:
        sub r8, r9, #0x400
        sub r8, r9, #0x101
        sub r3, r1, #0x101
+       add r3, #1
+       sub r3, #1