[Patch][gas][arm] Diagnose unpredictable mrrc, mrrc2 etc instructions

Tamar Christina Tamar.Christina@arm.com
Tue Aug 16 13:59:00 GMT 2016


   Hi All,

When instructions such as MRRC are used with the same destination registers
then the result is unpredictable but no warning was issued to the user.

This patch adds a warning for this pattern to the instructions:

* MRRC
* MRRC2


Added new test for message and ran tests for gas for arm-none-linux-gnueabi:

Ok for trunk?

Thanks,
Tamar

gas/
2016-08-09  Tamar Christina  <tamar.christina@arm.com>

	* config/tc-arm.c (do_co_reg2c): Added constraint.

gas/testsuite/
2016-08-09  Tamar Christina  <tamar.christina@arm.com>

	* gas/arm/dest-unpredictable.s: New.
	* gas/arm/dest-unpredictable.l: New.
	* gas/arm/dest-unpredictable.d: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils_review6.patch
Type: text/x-patch
Size: 2631 bytes
Desc: binutils_review6.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20160816/7e65fdbf/attachment.bin>


More information about the Binutils mailing list