This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to reinterpret data in GIMPLE.
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Sjodin, Jan" <Jan dot Sjodin at amd dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 3 Dec 2007 09:53:55 -0800
- Subject: Re: How to reinterpret data in GIMPLE.
- References: <9BCA02B0979C2A429C5965B8AE29269818C969@SAUSEXMB2.amd.com>
On 12/3/07, Sjodin, Jan <Jan.Sjodin@amd.com> wrote:
> I would like to reinterpret (not convert/cast) a 32-bit integer to a
> 32-bit float in GIMPLE. Is using a NOP_EXPR with the wanted type the
> correct way of doing this?
You want to use the tree code called VIEW_CONVERT_EXPR.
Thanks,
Andrew Pinski