This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/39068] signed short plus and signed char plus not vectorized
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Feb 2009 01:51:45 -0000
- Subject: [Bug tree-optimization/39068] signed short plus and signed char plus not vectorized
- References: <bug-39068-1008@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2009-02-06 01:51 -------
(In reply to comment #4)
> Yes because char = char + char is really char = (char)((int)char + (int)char);
Let me expand on that. ((char)CHAR_MAX) + 1 is well defined and there is no
overflow that occurs. Since GCC internally assumes signed integer overflow is
undefined, it has to convert it to be the well defined unsigned integer
version.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39068