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]

Re: Working with BITS_PER_WORD == 0x10



"First Name Last Name" <jshammond@my-deja.com> writes:

> The other problem involved 16 multiplies with a constant like,
> .
> short a=3;
> a = a * (short)5;
> .
> This would always cause a compile time error.  According to the 
> RTL statements it tried to extend the constant 5 to a 32 
> bit quantity

You mean, the compiler wrote

(mult:HI (reg:HI 1234) (const_int 5))

rather than

(mult:QI (reg:QI 1234) (const_int 5))

??

-- 
- Geoffrey Keating <geoffk@cygnus.com>

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