Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/matt-nb6-plus]: src/gnu/dist/binutils/gas/config Support the movt instru...



details:   https://anonhg.NetBSD.org/src/rev/83ed68e8fe11
branches:  matt-nb6-plus
changeset: 774543:83ed68e8fe11
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Feb 07 01:18:07 2013 +0000

description:
Support the movt instruction

diffstat:

 gnu/dist/binutils/gas/config/tc-arm.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r ff225ce47b07 -r 83ed68e8fe11 gnu/dist/binutils/gas/config/tc-arm.c
--- a/gnu/dist/binutils/gas/config/tc-arm.c     Mon Jan 28 16:56:14 2013 +0000
+++ b/gnu/dist/binutils/gas/config/tc-arm.c     Thu Feb 07 01:18:07 2013 +0000
@@ -6757,7 +6757,7 @@
 }
 
 static void
-do_movw (char * str)
+do_movwt (char * str)
 {
   expressionS expr;
   int reg;
@@ -6791,7 +6791,7 @@
       return;
     }
 
-  if ((expr.X_add_number >> 16) != 0)
+  if ((expr.X_add_number & 0xffff0000) != 0)
     {
       inst.error = _("invalid unsigned 16-bit value");
       return;
@@ -10245,7 +10245,8 @@
   { "dmb",       0xf57ff05f, 0,  ARM_EXT_V7A,      do_dsb},
   { "dsb",       0xf57ff04f, 0,  ARM_EXT_V7A,      do_dsb},
   { "isb",       0xf57ff06f, 0,  ARM_EXT_V7A,      do_dsb},
-  { "movw",     0xe3000000, 2,  ARM_EXT_V7A,      do_movw},
+  { "movw",     0xe3000000, 2,  ARM_EXT_V7A,      do_movwt},
+  { "movt",     0xe3400000, 2,  ARM_EXT_V7A,      do_movwt},
   { "sbfx",      0xe7a00050, 4,  ARM_EXT_V7A,      do_bfx},
   { "ubfx",      0xe7e00050, 4,  ARM_EXT_V7A,      do_bfx},
 



Home | Main Index | Thread Index | Old Index