[Bug c/48510] Does not vectorize loops involving casts from floating point to unsigned integer types

jeremysalwen at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Apr 8 17:43:00 GMT 2011


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

jeremysalwen at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |c
           Severity|enhancement                 |normal

--- Comment #2 from jeremysalwen at gmail dot com 2011-04-08 17:43:25 UTC ---
As you mentioned, unsigned conversions to int and long int both fail to
vectorize.  However, signed conversions to long int still fail, while they
succeed for signed conversions to int.

I should note that the computer I ran these last tests on is a Phenom II.

Apologies if I'm mistaken, but I believe the intrinsic

__builtin_ia32_cvttsd2si64

should do the conversion to a signed long on my platform.



More information about the Gcc-bugs mailing list