[Patch, Arm, Gas] PR24559: Fix pseudo load-operations for Armv8-M Baseline

Andre Vieira (lists) andre.simoesdiasvieira@arm.com
Thu May 16 16:24:00 GMT 2019


Hi,

This patch fixes PR24559 by making sure the size restriction for Thumb-1 
targets is relaxed for Armv8-M Baseline to allow for replacing pseudo 
load-operations with the 32-bit Thumb MOVW instruction if the immediate 
fits its range.

Is this OK for trunk?

Tested on arm-none-eabi, arm-pe and arm-vxworks.

Cheers,
Andre

gas/ChangeLog
2019-05-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>

	PR24559
         * config/tc-arm.c (move_or_literal_pool): Set size_req to 0
         for MOVW replacement.
         * testsuite/gas/arm/load-pseudo.s: New test input.
         * testsuite/gas/arm/m0-load-pseudo.d: New test.
         * testsuite/gas/arm/m23-load-pseudo.d: New test.
         * testsuite/gas/arm/m33-load-pseudo.d: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: load-pseudo.diff
Type: text/x-patch
Size: 2882 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20190516/2ab57706/attachment.bin>


More information about the Binutils mailing list