[Bug tree-optimization/126877] a==b imples (a+b)&1 is known to 0
hellothedreamer at 126 dot com via Gcc-bugs <[email protected]>
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126877
hellothedreamer at 126 dot com <hellothedreamer at 126 dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hellothedreamer at 126 dot com
--- Comment #1 from hellothedreamer at 126 dot com <hellothedreamer at 126 dot com> ---
Hi, I have a question about this logic.
The logic for the take function is:
signed f1(signed a, signed b)
{
return (a != b);
}
Beacase if (a==b) the return value for function signed f is 0; and if (a!=b)
the return value for function signed f is 1. Rignt or not?