On INTEGER_CST
Andrew Pinski
pinskia@gmail.com
Tue Mar 13 15:48:00 GMT 2007
On 3/13/07, Paulo J. Matos <pocm@soton.ac.uk> wrote:
>
> Which C type is HOST_WIDE_INT?
It can either be long, or long long depending on if the target needs
it to be 64bits and what size of long on the host.
> Isn't the type of the constant always integer_type?
No, it can be POINTER_TYPE, ENUMERAL_TYPE or OFFSET_TYPE (and INTEGER_TYPE).
> How can I know if it is negative or positive?
You can use tree_int_cst_sign_bit or tree_int_cst_msb depending on the context.
-- Pinski
More information about the Gcc
mailing list