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] Fix powerpc 64 alignment problem for lwa instruction


We, at Apple, found a ppc64 code generation problem where lwa_operand routine didn't check the alignment of a memory operand being 32 bits aligned or not.

The following patch has been tested on ppc MacOS with "make all", "-- enable-languages=c,c++,objc,obj-c++", and regression tested with a top- level "make check-gcc" with no regression.

gcc/ChangeLog:

	* gcc/config/rs6000/predicates.md (lwa_operand): Check the alignment of
	a memory operand is 32 bits aligned or not.

gcc/testsuite/ChangeLog:

* gcc.dg/pragma-align-3.c : New.

Attachment: radar-patch.align.txt
Description: Text document


OK for mainline?


Hui-May Chang
Apple Computer

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