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.
This commit is contained in:
Nick Clifton 2018-01-02 12:13:17 +00:00
parent 1508bbf535
commit 806ab1c045
2 changed files with 7 additions and 1 deletions

View File

@ -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.

View File

@ -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