constant that doesn't fit in 32bits in alpha.c
Jay K
jay.krell@cornell.edu
Sun Jun 10 09:18:00 GMT 2012
gcc-4.7.0/gcc/config/alpha/alpha.c
word1 = expand_and (DImode, word1, GEN_INT (0xffff0fff0000fff0), NULL);
That "big" constant isn't portable since it doesn't fit in 32bits.
1) append LL
or 2) break it up into an expression, like
((HOST_WIDE_INT)0xffff0fff) << 8) | 0x0fff0
or such.
#2 is more portable, i.e. to compilers with "__int64" and "0xFFi64" instead of "long long" and "LL".
#3) something involving a double-precision integer using two longs, as I believe gcc does elsewhere.
#2 Depending on HOST_WIDE_INT being portable suffices imho.
- Jay
More information about the Gcc
mailing list