On Mon, Sep 24, 2012 at 3:01 PM, srinivas dama <srinivas....@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