-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
Not seeing why this happens in C# in both .Net 5/6, but not .Net Core 3.1:
var v = Vector256.Create(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f); //<1, 2, 3, 4, 5, 6, 7, 8>
v = Vector256.Create(1.0f); //<1, 1, 1, 1, 0, 0, 0, 7.17E-43>
v = Vector256.Create(-1.0f, -2.0f, -3.0f, -4.0f, -5.0f, -6.0f, -7.0f, -8.0f); //<-1, -2, -3, -4, -5, -6, -7, -8>
v = Vector256.Create(1.0f); //<1, 1, 1, 1, 1, 1, 1, 1>The upper bits of line 2 should have matched line 4. However, moving the code around makes it occur with line 1.
Originally posted by @jeffk100 in #53967