This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix typo in do_mrs function in ARM assembler.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=806ab1c045c4cbb5c906f79bcb2e0c3058f4c6fd

commit 806ab1c045c4cbb5c906f79bcb2e0c3058f4c6fd
Author: Nick Clifton <nickc@redhat.com>
Date:   Tue Jan 2 12:13:17 2018 +0000

    Fix typo in do_mrs function in ARM assembler.
    
    	PR 18119
    	* config/tc-arm.c (do_mrs): Fix test of bits 16-19 in non-banked
    	version of ARM MRS instruction.

Diff:
---
 gas/ChangeLog       | 6 ++++++
 gas/config/tc-arm.c | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index eeeff51..2028383 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2018-01-02  Nick Clifton  <nickc@redhat.com>
+
+	PR 18119
+	* config/tc-arm.c (do_mrs): Fix test of bits 16-19 in non-banked
+	version of ARM MRS instruction.
+
 2017-12-28  Jim Wilson  <jimw@sifive.com>
 
 	* testsuite/gas/riscv/priv-reg.d, testsuite/gas/riscv/priv-reg.s: New.
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index c12a453..c304793 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -9243,7 +9243,7 @@ do_mrs (void)
   if (inst.operands[1].isreg)
     {
       br = inst.operands[1].reg;
-      if (((br & 0x200) == 0) && ((br & 0xf0000) != 0xf000))
+      if (((br & 0x200) == 0) && ((br & 0xf0000) != 0xf0000))
 	as_bad (_("bad register for mrs"));
     }
   else


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]