[binutils][2.24][objdump][ARM] Backport fixes for unpredictable nops and 26-bit versions of teq,tst,cmn,cmp

Andre Vieira Andre.SimoesDiasVieira@arm.com
Thu Sep 10 14:25:00 GMT 2015


NOPS with invalid SBO/SBZ fields were being wrongfully translated to TEQ's.
The 26-bit versions of TEQ/TST/CMN/CMP are now marked UNPREDICTABLE for 
ARM V6 and higher.
See the definition of UNPREDICTABLE instructions and instruction 
definitions for TEQ/TST/CMN/CMP in the ARM Architecture Reference Manual 
ARMv7-A and ARMv7-R edition, reference ARM DDI0406C,
on infocenter.arm.com.

This patch backports the fix from trunk to the binutils 2.24 branch.

The original patch is at:
https://sourceware.org/ml/binutils/2015-08/msg00028.html


opcodes/ChangeLog:

2015-07-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>

     Backport from mainline
     2015-08-13  Andre Vieira  <andre.simoesdiasvieira@arm.com>

         * arm-dis.c (print_insn_arm): Disassembling for all targets V6
         and higher with ARM instruction set will now mark the 26-bit
         versions of teq,tst,cmn and cmp as UNPREDICTABLE.
         (arm_opcodes): Fix for unpredictable nop being recognized as a
         teq.

gas/testsuite/ChangeLog:

2015-07-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>

     Backport from mainline
     2015-08-13  Andre Vieira  <andre.simoesdiasvieira@arm.com>

         * gas/arm/nops.d: New.
         * gas/arm/nops.s: New.
         * gas/arm/inst.d: Changed expectation file for 26-bit teq,
         tst, cmn and cmp.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-backport-for-fix-unpredictable.patch
Type: text/x-patch
Size: 5650 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150910/9837c910/attachment.bin>


More information about the Binutils mailing list