This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to get signedness from rtx?
> Ok, my problem is that for some processing during comparison i need
> to know whether is the char operand is signed or unsigned. So i guess
> i can get this looking at what type of comparison is. But if the
> comparison code is EQ or NE will i be able to get the information?
If the signedness doesn't matter for the operation, it won't generally be
encoded in the operator. But, in this case, further processing of the
operation shouldn't have to care about signedness, since at some point it
didn't matter. On the other hand, if you're talking about the initial
processing (i.e. during RTL expansion), the information is encoded in the
trees fed to the expander.
--
Eric Botcazou