This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Working with BITS_PER_WORD == 0x10
- To: "First Name Last Name" <jshammond at my-deja dot com>
- Subject: Re: Working with BITS_PER_WORD == 0x10
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: 04 Oct 2000 13:56:44 -0700
- CC: gcc at gcc dot gnu dot org
- References: <200010040040.RAA26533@mail24.bigmailbox.com>
"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>