This is the mail archive of the
mailing list for the GCC project.
Re: subreg:HI of PSI HW register issue
On 03/09/2012 04:20 PM, Aurelien Buhrig wrote:
> I'm not used to work at tree level for now and it is unclear for me what
> part of the code should be tweaked. Can you tell me which part of the
> code you are fixing/looking at, so that I can have a better
> understanding of ptr_mode vs Pmode before your fix?
I'm thinking the bitfield code in expmed.c (extract_bit_field_1 etc.)
needs a subreg_offset_representable_p check, followed by looking for the
next larger integer mode if that fails. Then, if necessary, cast the
result back to the original mode in case of extraction.