[Bug optimization/14682] [tree-ssa] error: Invalid operand to binary operator
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Mar 22 22:11:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-22 22:11 -------
Here is a version which uses char instead of long/long long's:
int __atomic_readv_replacement(unsigned char iov_len, int count, int i) {
unsigned char bytes = 0;
if ((unsigned char)((char)127 - bytes) < iov_len)
return 22;
return 0;
}
The problem is that fold is converting 127 < iov_len into (char)( iov_len) < 0 which is
right but it is not gimple.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |dnovillo at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14682
More information about the Gcc-bugs
mailing list