Skip to content

Debugger corrupts vectors on breakpoint #54025

@hoyosjs

Description

@hoyosjs

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions