Home Dashboard Directory Help

Incorrect vectorized cast from float to unsigned int by Avery Lee


 as Fixed Help for as Fixed

Sign in
to vote
Type: Bug
ID: 688755
Opened: 9/15/2011 11:35:58 PM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
User(s) can reproduce this bug


The VC11 Express developer preview compiler incorrectly uses float to signed int conversion instruction without fixup when converting a float to unsigned int cast. This truncates all numbers above 2^31.
Sign in to post a comment.
Posted by Microsoft on 9/26/2011 at 12:27 PM
Avery, thanks for reporting this. This is definitely a bug in the vectorizer. It is trying to map the conversion from floating point to unsigned integer in the source program to a vector instruction that does a floating point to signed integer conversion. I'll make sure that this is fixed before we ship the final product.

ian Bearman
VC++ Code Generation and Optimization Team
Posted by MS-Moderator08 [Feedback Moderator] on 9/16/2011 at 3:05 AM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 9/15/2011 at 11:43 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.