This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch ARM] Fix PR40482.


Hi, 

This fixes PR40482. In configurations with HOST_WIDE_INT being set to 64
bits we now need to fix thumb_shiftable_const to only work on the lower 32
bits. This allows us to generate more constants inline rather than loading
them from memory.

Ok to commit if no regressions on a cross arm-none-eabi testsuite ?


cheers
Ramana

2009-06-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

	PR target/40482
	* config/arm/arm.c (thumb_shiftable_const): Truncate val to 
	32 bits.
	* config/arm/arm.md: Likewise.

2009-06-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

	PR target/40482
	* gcc.target/arm/pr40482.c: New test.

---

Ramana Radhakrishnan
GNU Tools Engineer
ARM Ltd. (www.arm.com)

Attachment: p.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]