* gas/testsuite/gas/arm/thumb-eabi.d: Add case for divided syntax encoding of movs.
authorMatthew Gretton-Dann <matthew.gretton-dann@arm.com>
Mon, 7 Jun 2010 10:43:52 +0000 (10:43 +0000)
committerMatthew Gretton-Dann <matthew.gretton-dann@arm.com>
Mon, 7 Jun 2010 10:43:52 +0000 (10:43 +0000)
* gas/testsuite/gas/arm/thumb.d: Likewise.
* gas/testsuite/gas/arm/thumb.s: Likewise.
* gas/testsuite/gas/arm/thumb2_it.d: Update for change in lsls/movs disassembly.
* gas/testsuite/gas/arm/thumb2_it_auto.d: Liekwise.
* gas/testsuite/gas/arm/thumb32.d: Likewise.
* ld/testsuite/ld-arm/arm-call.d: Handle change in lsls/movs disassembly.
* ld/testsuite/ld-arm/farcall-thumb-arm-short.d: Likewise.
* ld/testsuite/ld-arm/farcall-thumb-thumb-blx-pic-veneer.d: Likewise.
* ld/testsuite/ld-arm/farcall-thumb-thumb-blx.d: Likewise.
* ld/testsuite/ld-arm/farcall-thumb-thumb-m-pic-veneer.d: Likewise.
* ld/testsuite/ld-arm/farcall-thumb-thumb-m.d: Likewise.
* ld/testsuite/ld-arm/farcall-thumb-thumb-pic-veneer.d: Likewise.
* ld/testsuite/ld-arm/farcall-thumb-thumb.d: Likewise.
* ld/testsuite/ld-arm/thumb2-bl-as-thumb1-bad-noeabi.d: Likewise.
* ld/testsuite/ld-arm/thumb2-bl-as-thumb1-bad.d: Likewise.
* ld/testsuite/ld-arm/thumb2-bl-bad-noeabi.d: Likewise.
* ld/testsuite/ld-arm/thumb2-bl-bad.d: Likewise.
* opcodes/arm-dis.c (thumb-opcodes): Add disassembly for movs.

22 files changed:
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/thumb-eabi.d
gas/testsuite/gas/arm/thumb.d
gas/testsuite/gas/arm/thumb.s
gas/testsuite/gas/arm/thumb2_it.d
gas/testsuite/gas/arm/thumb2_it_auto.d
gas/testsuite/gas/arm/thumb32.d
ld/testsuite/ChangeLog
ld/testsuite/ld-arm/arm-call.d
ld/testsuite/ld-arm/farcall-thumb-arm-short.d
ld/testsuite/ld-arm/farcall-thumb-thumb-blx-pic-veneer.d
ld/testsuite/ld-arm/farcall-thumb-thumb-blx.d
ld/testsuite/ld-arm/farcall-thumb-thumb-m-pic-veneer.d
ld/testsuite/ld-arm/farcall-thumb-thumb-m.d
ld/testsuite/ld-arm/farcall-thumb-thumb-pic-veneer.d
ld/testsuite/ld-arm/farcall-thumb-thumb.d
ld/testsuite/ld-arm/thumb2-bl-as-thumb1-bad-noeabi.d
ld/testsuite/ld-arm/thumb2-bl-as-thumb1-bad.d
ld/testsuite/ld-arm/thumb2-bl-bad-noeabi.d
ld/testsuite/ld-arm/thumb2-bl-bad.d
opcodes/ChangeLog
opcodes/arm-dis.c

index b488019a2001c7103019d162c066b5283e277363..7701f2a841d118c928ed52c593ed8c4660f85748 100644 (file)
@@ -1,3 +1,11 @@
+2010-06-07  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
+       * gas/arm/thumb-eabi.d: Add case for divided syntax encoding of movs.
+       * gas/arm/thumb.d: Likewise.
+       * gas/arm/thumb.s: Likewise.
+       * gas/arm/thumb2_it.d: Update for change in lsls/movs disassembly.
+       * gas/arm/thumb2_it_auto.d: Liekwise.
+       * gas/arm/thumb32.d: Likewise.
+
 2010-05-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
 
        * gas/arm/thumb2_it_auto.d: Update for change in movs encoding.
index 188a2e2e4316588002950d33fb0489074e645327..9fd77d196743af1b71ad762a25346808b96c0d79 100644 (file)
@@ -10,9 +10,9 @@ Disassembly of section \.text:
 0+000 <[^>]+> 00ca             lsls    r2, r1, #3
 0+002 <[^>]+> 0fe3             lsrs    r3, r4, #31
 0+004 <[^>]+> 1147             asrs    r7, r0, #5
-0+006 <[^>]+> 0011             lsls    r1, r2, #0
-0+008 <[^>]+> 0023             lsls    r3, r4, #0
-0+00a <[^>]+> 002c             lsls    r4, r5, #0
+0+006 <[^>]+> 0011             movs    r1, r2
+0+008 <[^>]+> 0023             movs    r3, r4
+0+00a <[^>]+> 002c             movs    r4, r5
 0+00c <[^>]+> 083e             lsrs    r6, r7, #32
 0+00e <[^>]+> 1008             asrs    r0, r1, #32
 0+010 <[^>]+> 18d1             adds    r1, r2, r3
@@ -161,5 +161,5 @@ Disassembly of section \.text:
 0+93e <[^>]+> 4801             ldr     r0, \[pc, #4\]  ; \(0+944 <[^>]+>\)
 0+940 <[^>]+> 4801             ldr     r0, \[pc, #4\]  ; \(0+948 <[^>]+>\)
 0+942 <[^>]+> 4801             ldr     r0, \[pc, #4\]  ; \(0+948 <[^>]+>\)
-0+944 <[^>]+> 46c0             nop                     ; \(mov r8, r8\)
+0+944 <[^>]+> 1c08             adds    r0, r1, #0
 0+946 <[^>]+> 46c0             nop                     ; \(mov r8, r8\)
index 7ee5582d6000de1e1879ae337effcc5e7de66c16..6d88508a42a481d18dfd046b51650e5f54edf9d2 100644 (file)
@@ -11,9 +11,9 @@ Disassembly of section \.text:
 0+000 <[^>]+> 00ca             lsls    r2, r1, #3
 0+002 <[^>]+> 0fe3             lsrs    r3, r4, #31
 0+004 <[^>]+> 1147             asrs    r7, r0, #5
-0+006 <[^>]+> 0011             lsls    r1, r2, #0
-0+008 <[^>]+> 0023             lsls    r3, r4, #0
-0+00a <[^>]+> 002c             lsls    r4, r5, #0
+0+006 <[^>]+> 0011             movs    r1, r2
+0+008 <[^>]+> 0023             movs    r3, r4
+0+00a <[^>]+> 002c             movs    r4, r5
 0+00c <[^>]+> 083e             lsrs    r6, r7, #32
 0+00e <[^>]+> 1008             asrs    r0, r1, #32
 0+010 <[^>]+> 18d1             adds    r1, r2, r3
@@ -161,5 +161,5 @@ Disassembly of section \.text:
 0+93e <[^>]+> 4801             ldr     r0, \[pc, #4\]  ; \(0+944 <[^>]+>\)
 0+940 <[^>]+> 4801             ldr     r0, \[pc, #4\]  ; \(0+948 <[^>]+>\)
 0+942 <[^>]+> 4801             ldr     r0, \[pc, #4\]  ; \(0+948 <[^>]+>\)
-0+944 <[^>]+> 46c0             nop                     ; \(mov r8, r8\)
+0+944 <[^>]+> 1c08             adds    r0, r1, #0
 0+946 <[^>]+> 46c0             nop                     ; \(mov r8, r8\)
index d1e43394efa2eec41176dcd167183e7426feb33c..a044bdfca589fcaf96f0e42e3d4d5f528872b6d2 100644 (file)
@@ -198,5 +198,6 @@ forwardonly:
        ldr     r0, [pc, #4]
        ldr     r0, [pc, #4]
 .target:
-       nop     @ pad for a.out
+baz:
+       mov     r0, r1
        nop
index b55bc6728ad6d996a22281b859269959f3a58832..b02659fc37e439e98de49b661aaee4ec5bb060f4 100644 (file)
@@ -45,7 +45,7 @@ Disassembly of section .text:
 0+062 <[^>]+> bf08             it      eq
 0+064 <[^>]+> 4640             moveq   r0, r8
 0+066 <[^>]+> 4608             mov     r0, r1
-0+068 <[^>]+> 0008             lsls    r0, r1, #0
+0+068 <[^>]+> 0008             movs    r0, r1
 0+06a <[^>]+> ea5f 0008        movs.w  r0, r8
 0+06e <[^>]+> bf01             itttt   eq
 0+070 <[^>]+> 43c8             mvneq   r0, r1
index 91d82ca7f86581b1c988d4139c311083352833a2..03ad87c2d1d7ffc9f50662370e778a23dc5fca7e 100644 (file)
@@ -45,7 +45,7 @@ Disassembly of section .text:
 0+062 <[^>]+> bf08             it      eq
 0+064 <[^>]+> 4640             moveq   r0, r8
 0+066 <[^>]+> 4608             mov     r0, r1
-0+068 <[^>]+> 0008             lsls    r0, r1, #0
+0+068 <[^>]+> 0008             movs    r0, r1
 0+06a <[^>]+> ea5f 0008        movs.w  r0, r8
 0+06e <[^>]+> bf01             itttt   eq
 0+070 <[^>]+> 43c8             mvneq   r0, r1
index 31278d8d4982a280559c7d1b8ca8093ef669875b..2499f7385707dcf8f38ba0baededb9f366f0d51a 100644 (file)
@@ -618,9 +618,9 @@ Disassembly of section .text:
 0[0-9a-f]+ <[^>]+> eb10 0f09   cmn\.w  r0, r9
 0[0-9a-f]+ <[^>]+> f110 0f81   cmn\.w  r0, #129        ; 0x81
 0[0-9a-f]+ <[^>]+> f115 0f81   cmn\.w  r5, #129        ; 0x81
-0[0-9a-f]+ <[^>]+> 0000        lsls    r0, r0, #0
+0[0-9a-f]+ <[^>]+> 0000        movs    r0, r0
 0[0-9a-f]+ <[^>]+> 4600        mov     r0, r0
-0[0-9a-f]+ <[^>]+> 0005        lsls    r5, r0, #0
+0[0-9a-f]+ <[^>]+> 0005        movs    r5, r0
 0[0-9a-f]+ <[^>]+> 4628        mov     r0, r5
 0[0-9a-f]+ <[^>]+> ea4f 4065   mov\.w  r0, r5, asr #17
 0[0-9a-f]+ <[^>]+> ea4f 0000   mov\.w  r0, r0
index a59ad4a2b78d499efc687e04901c5944448fc40e..162f166c8c1fc3b22411098196461a59a0053749 100644 (file)
@@ -1,3 +1,18 @@
+2010-06-07  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+       * ld-arm/arm-call.d: Handle change in lsls/movs disassembly.
+       * ld-arm/farcall-thumb-arm-short.d: Likewise.
+       * ld-arm/farcall-thumb-thumb-blx-pic-veneer.d: Likewise.
+       * ld-arm/farcall-thumb-thumb-blx.d: Likewise.
+       * ld-arm/farcall-thumb-thumb-m-pic-veneer.d: Likewise.
+       * ld-arm/farcall-thumb-thumb-m.d: Likewise.
+       * ld-arm/farcall-thumb-thumb-pic-veneer.d: Likewise.
+       * ld-arm/farcall-thumb-thumb.d: Likewise.
+       * ld-arm/thumb2-bl-as-thumb1-bad-noeabi.d: Likewise.
+       * ld-arm/thumb2-bl-as-thumb1-bad.d: Likewise.
+       * ld-arm/thumb2-bl-bad-noeabi.d: Likewise.
+       * ld-arm/thumb2-bl-bad.d: Likewise.
+
 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/11628
index fa452ab47edd5c03b02af8d70f399bbced1f0661..a3207430b7985f9683e466423967d13dc6d46a27 100644 (file)
@@ -46,7 +46,7 @@ Disassembly of section .text:
     8050:      f7ff fff1       bl      8036 <t3>
     8054:      f7ff efd4       blx     8000 <_start>
     8058:      f7ff efd2       blx     8000 <_start>
-    805c:      0000            lsls    r0, r0, #0
+    805c:      0000            movs    r0, r0
        ...
 
 00008060 <__t1_from_arm>:
index f4caf87b87a9f2d80aa84fffa89c7d5241a9bbef..4e190394336892f7c7e46a9bd6ac0a2f9eb14b14 100644 (file)
@@ -4,7 +4,7 @@ Disassembly of section .text:
 
 00001000 <_start>:
     1000:      f000 f802       bl      1008 <__bar_from_thumb>
-    1004:      0000            lsls    r0, r0, #0
+    1004:      0000            movs    r0, r0
        \.\.\.
 
 00001008 <__bar_from_thumb>:
index 86c0ca09a7a451b190fbcaa7e235ec63fa5325f7..27b208e72bf0f81a9f4d64a526e119ed79a99c1a 100644 (file)
@@ -4,7 +4,7 @@ Disassembly of section .text:
 
 00001000 <_start>:
     1000:      f000 e802       blx     1008 <__bar_veneer>
-    1004:      0000            lsls    r0, r0, #0
+    1004:      0000            movs    r0, r0
        \.\.\.
 
 00001008 <__bar_veneer>:
index 5e9ac5a0feb877aca851edfaaadddf980d5cff7c..7998746fd0cfaf9507404e5cae282e137ea02585 100644 (file)
@@ -4,7 +4,7 @@ Disassembly of section .text:
 
 00001000 <_start>:
     1000:      f000 e802       blx     1008 <__bar_veneer>
-    1004:      0000            lsls    r0, r0, #0
+    1004:      0000            movs    r0, r0
        \.\.\.
 
 00001008 <__bar_veneer>:
index 79e6449dc0e958e8c7f8ab47b1fe626222d32e59..974c1e9c416d0be8c7ac1b9a512da318d9cd4e0d 100644 (file)
@@ -4,7 +4,7 @@ Disassembly of section .text:
 
 00001000 <_start>:
     1000:      f000 f802       bl      1008 <__bar_veneer>
-    1004:      0000            lsls    r0, r0, #0
+    1004:      0000            movs    r0, r0
        ...
 
 00001008 <__bar_veneer>:
index 84782b8151e3ddc51264e73f7e01ba82133ae11c..e63b3f8fdf627f5ab1aaa87817f248ac7480d53a 100644 (file)
@@ -4,7 +4,7 @@ Disassembly of section .text:
 
 00001000 <_start>:
     1000:      f000 f802       bl      1008 <__bar_veneer>
-    1004:      0000            lsls    r0, r0, #0
+    1004:      0000            movs    r0, r0
        \.\.\.
 
 00001008 <__bar_veneer>:
index 8c2cddf91075f9c6988d772b445bae10d4343c52..8b14599a53014c5785b84d2836dcd5542f63bc50 100644 (file)
@@ -4,7 +4,7 @@ Disassembly of section .text:
 
 00001000 <_start>:
     1000:      f000 f802       bl      1008 <__bar_veneer>
-    1004:      0000            lsls    r0, r0, #0
+    1004:      0000            movs    r0, r0
        ...
 
 00001008 <__bar_veneer>:
index 8ea41c7ba24357676c94a5367266b86d3c0e337c..ffbc6dfe0a65d8be1b81fc0e954f1b005d7303c4 100644 (file)
@@ -4,7 +4,7 @@ Disassembly of section .text:
 
 00001000 <_start>:
     1000:      f000 f802       bl      1008 <__bar_veneer>
-    1004:      0000            lsls    r0, r0, #0
+    1004:      0000            movs    r0, r0
        \.\.\.
 
 00001008 <__bar_veneer>:
index 540c4529f2ffbce63284886e33bcd6e11c086d9f..8872909b3432c1c5b6ca7b8898285ba9ccae1413 100644 (file)
@@ -4,7 +4,7 @@ Disassembly of section .text:
 
 00001000 <_start>:
     1000:      f000 f802       bl      1008 <__bar_veneer>
-    1004:      0000            lsls    r0, r0, #0
+    1004:      0000            movs    r0, r0
        ...
 
 00001008 <__bar_veneer>:
index 04eb99149d91dcf976781362ca20a03c8d1bed4b..6b478109cbcede09aff9cff43fda95e9d61584e4 100644 (file)
@@ -4,7 +4,7 @@ Disassembly of section .text:
 
 00001000 <_start>:
     1000:      f000 e802       blx     1008 <__bar_veneer>
-    1004:      0000            lsls    r0, r0, #0
+    1004:      0000            movs    r0, r0
        \.\.\.
 
 00001008 <__bar_veneer>:
index 540c4529f2ffbce63284886e33bcd6e11c086d9f..8872909b3432c1c5b6ca7b8898285ba9ccae1413 100644 (file)
@@ -4,7 +4,7 @@ Disassembly of section .text:
 
 00001000 <_start>:
     1000:      f000 f802       bl      1008 <__bar_veneer>
-    1004:      0000            lsls    r0, r0, #0
+    1004:      0000            movs    r0, r0
        ...
 
 00001008 <__bar_veneer>:
index 89c7a550768d72a9397f63a507963a3352b1b571..d78e45132580099c59f29799b7d8bd51beb488a1 100644 (file)
@@ -4,7 +4,7 @@ Disassembly of section .text:
 
 00001000 <_start>:
     1000:      f000 e802       blx     1008 <__bar_veneer>
-    1004:      0000            lsls    r0, r0, #0
+    1004:      0000            movs    r0, r0
        \.\.\.
 
 00001008 <__bar_veneer>:
index 9ec2d501000bf585905f3e01202ce314582de52c..3055bc0e19d9fc4efa8e8d2aa2fcaec62226dd52 100644 (file)
@@ -1,3 +1,7 @@
+2010-06-07  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
+
+       * arm-dis.c (thumb-opcodes): Add disassembly for movs.
+
 2010-05-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
 
        * arm-dis.c (print_insn_neon):  Ensure disassembly of Neon 
index 3763c1ee7c6fd62937c6e581c8625668ac3f50c1..174de5ab445097821aad2e221a6bdac9ffadaae6 100644 (file)
@@ -1249,6 +1249,7 @@ static const struct opcode16 thumb_opcodes[] =
   {ARM_EXT_V4T, 0x5000, 0xFA00, "str%10'b%c\t%0-2r, [%3-5r, %6-8r]"},
   {ARM_EXT_V4T, 0x5800, 0xFA00, "ldr%10'b%c\t%0-2r, [%3-5r, %6-8r]"},
   /* format 1 */
+  {ARM_EXT_V4T, 0x0000, 0xFFC0, "mov%C\t%0-2r, %3-5r"},
   {ARM_EXT_V4T, 0x0000, 0xF800, "lsl%C\t%0-2r, %3-5r, #%6-10d"},
   {ARM_EXT_V4T, 0x0800, 0xF800, "lsr%C\t%0-2r, %3-5r, %s"},
   {ARM_EXT_V4T, 0x1000, 0xF800, "asr%C\t%0-2r, %3-5r, %s"},