This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: target/9620: left-shift of bit field of 64-bit long truncated to 32 bits.
- From: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 7 Feb 2003 23:16:00 -0000
- Subject: Re: target/9620: left-shift of bit field of 64-bit long truncated to 32 bits.
- Reply-to: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
The following reply was made to PR target/9620; it has been noted by GNATS.
From: Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
To: gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: target/9620: left-shift of bit field of 64-bit long truncated to 32 bits.
Date: 08 Feb 2003 00:09:28 +0100
marky@model.com writes:
> The result of a left-shift on a bit field of a 64-bit unsigned long
> is truncated to 32 bits, even if the field reference is cast to
> unsigned long.
I can reproduce this on Alpha with both gcc 3.2.2 and 3.4 20030203.
--
Falk