This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/32309] Unnecessary conversion from short to unsigend short breaks vectorization



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-06-12 17:36 -------
>Do you mean that short_var + short_var is defined as 
> (short)((unsigned short)short_var + (unsigned short)short_var)?

Kinda, because it is really defined by the C standard as:
 (short)((int)short_var + (int)short_var)
And then GCC's middle-end optimizes it to:
(short)((unsigned short)short_var + (unsigned short)short_var)

*** This bug has been marked as a duplicate of 26128 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32309


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]