[PATCH ARM] FIx arm_gen_constant on 64-bit hosts

Richard Earnshaw rearnsha@gcc.gnu.org
Thu May 12 10:40:00 GMT 2005


This patch fixes PR 21501 which is related to cross-compiling from a
64-bit host to ARM.  The problem was that we were generating const_int
values that were subsequently rejected by general_operand(). 
general_operand() requires that a value is sign-extended for the mode it
is used in and we weren't always doing that.

Tested on arm-elf (but the change is a no-op anyway on a 32-bit host).

2005-05-12  Richard Earnshaw  <richard.earnshaw@arm.com>

	PR target/21501
	* arm.c (arm_gen_constant): Sign-extend intermediate values when
	synthesizing a constant of the difference of two immediates.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: const-diff.patch
Type: text/x-patch
Size: 1450 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050512/c3168616/attachment.bin>


More information about the Gcc-patches mailing list