This is the mail archive of the gcc@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: bug in cse.c


On Tue, Sep 28, 2004 at 07:36:53PM +0200, Leehod Baruch wrote:
> (insn 1289 1288 1264 14 (set (reg:SI 839)
>         (subreg:SI (reg:DI 558) 0)) -1 (nil)
>     (nil))
...
> The high subreg of register 558 is really a const_int 0 ...

If this is a big-endian target, (subreg x 0) *is* the high subreg.

> The reason for this mistake is that the analysis didn't take into
> account that the computer may use the big Endean method.

Well, subreg_lsb certainly does examine endianness, so all I
can say without more information is that your analysis is wrong.

You'll have to give a much better description of the problem,
including a test case.



r~


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