Skip to content

Commit

Permalink
Temp change for testing
Browse files Browse the repository at this point in the history
(Temporarily) add some WriteLines to Vector4.ShuffleTest to hopefully narrow down the cause of failure

temp change part 2

ensure message will be identifiable

Update Vector4Tests.cs
  • Loading branch information
hamarb123 committed Jan 22, 2025
1 parent fc4b8f5 commit 7b1e4e2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/libraries/System.Numerics.Vectors/tests/Vector4Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2204,6 +2204,15 @@ public void GetElementTest(float x, float y, float z, float w)
[InlineData(5.0f, 6.0f, 7.0f, 8.0f)]
public void ShuffleTest(float x, float y, float z, float w)
{
System.Console.WriteLine("Vector4Tests.ShuffleTest (INFO) 1: " + System.Runtime.Intrinsics.X86.Sse2.IsSupported);
System.Console.WriteLine("Vector4Tests.ShuffleTest (INFO) 2: " + System.Runtime.Intrinsics.X86.Ssse3.IsSupported);
System.Console.WriteLine("Vector4Tests.ShuffleTest (INFO) 3: " + System.Runtime.Intrinsics.X86.Avx.IsSupported);
System.Console.WriteLine("Vector4Tests.ShuffleTest (INFO) 4: " + System.Runtime.Intrinsics.X86.Avx2.IsSupported);
System.Console.WriteLine("Vector4Tests.ShuffleTest (INFO) 5: " + System.Runtime.Intrinsics.X86.Avx512F.IsSupported);
System.Console.WriteLine("Vector4Tests.ShuffleTest (INFO) 6: " + System.Runtime.Intrinsics.X86.Avx512F.VL.IsSupported);
System.Console.WriteLine("Vector4Tests.ShuffleTest (INFO) 7: " + System.Runtime.Intrinsics.X86.Avx10v1.IsSupported);
System.Console.WriteLine("Vector4Tests.ShuffleTest (INFO) 8: " + Vector4.Shuffle(Vector4.Create(x, y, z, w), 3, 2, 1, 0));
System.Console.WriteLine("Vector4Tests.ShuffleTest (INFO) 9: " + Vector4.Shuffle(Vector4.Create(x, y, z, w), 1, 0, 3, 2));
Assert.Equal(Vector4.Create(w, z, y, x), Vector4.Shuffle(Vector4.Create(x, y, z, w), 3, 2, 1, 0));
Assert.Equal(Vector4.Create(y, x, w, z), Vector4.Shuffle(Vector4.Create(x, y, z, w), 1, 0, 3, 2));
}
Expand Down

0 comments on commit 7b1e4e2

Please sign in to comment.