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]

Re: patch: reject incompatible classes in simplify_subreg


On Tue, Dec 07, 2004 at 10:37:33AM +1030, Alan Modra wrote:
> On Mon, Dec 06, 2004 at 07:50:56PM -0400, Aldy Hernandez wrote:
> > So we want to change the upper bits of (reg:DF 9), but we end up changing
> > (reg:SI 9), which is actually the bottom bits.
> 
> No, (reg:SI 9) is the high word of (reg:DF 9).

That's the catch, for e500v2 it *is* the low bits because a DF goes in one
register not two.  However, the upper 32-bits are only accesible with
SIMD or double FP operations.  When classic 32-bit operations are
performed on a given register (accessed by itself), we're talking about
the lower 32-bits.

See my problem? :-(

Aldy


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