predicate for getting declaration tree node for SUBREG
Richard Guenther
richard.guenther@gmail.com
Mon Sep 24 13:35:00 GMT 2012
On Mon, Sep 24, 2012 at 3:01 PM, srinivas dama <srinivas.ind@gmail.com> wrote:
> Hi,
>
> I see there is predicate REG_EXPR for getting declaration node for a REG rtx.
> It would be helpful If I get an equivalent predicate for a SUBREG rtx.
> I couldn't find such thing.
>
> My requirement is :
>
> I need find out if an operand is signed/unsigned from rtx.I am doing as below.
> rtx op0;
> tree decl0;
> decl0 = REG_EXPR (op0);
> unsignedp =TYPE_UNSIGNED (TREE_TYPE (decl0)):
>
>
> But if my rtx is SUBREG ,I couldn't find equivalent predicate similar
> to REG_EXPR.
There isn't one. Similar to how REG_EXPR can be NULL. In that case
you simply don't know.
Richard.
>
>
> Regards,
> srinivas
More information about the Gcc
mailing list