From faee1f13ac4d6cc33487a890d5b8b33196790a32 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Tue, 19 Feb 2019 13:24:30 -0800 Subject: [PATCH] Fixing extension method overload resolution for some S.R.I.Vector methods (dotnet/coreclr#22696) Commit migrated from https://github.com/dotnet/coreclr/commit/50c44bec9c38f4d347c945d2034eb6a933680e36 --- .../X86/Regression/GitHub_17957/GitHub_17957.cs | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Regression/GitHub_17957/GitHub_17957.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Regression/GitHub_17957/GitHub_17957.cs index 1e65f75..19dea56 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Regression/GitHub_17957/GitHub_17957.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Regression/GitHub_17957/GitHub_17957.cs @@ -17,19 +17,19 @@ namespace GitHub_17957 public static bool Test128() { Vector128 vs = Vector128.Zero; - vs = vs.WithElement(0, -1); + vs = vs.WithElement(0, (short)(-1)); if (vs.GetElement(0) != -1) { return false; } - vs = vs.WithElement(3, -1); + vs = vs.WithElement(3, (short)(-1)); if (vs.GetElement(3) != -1) { return false; } - vs = vs.WithElement(7, -1); + vs = vs.WithElement(7, (short)(-1)); if (vs.GetElement(7) != -1) { return false; @@ -57,19 +57,19 @@ namespace GitHub_17957 Vector128 vsb = Vector128.Zero; - vsb = vsb.WithElement(0, -1); + vsb = vsb.WithElement(0, (sbyte)(-1)); if (vsb.GetElement(0) != -1) { return false; } - vsb = vsb.WithElement(7, -1); + vsb = vsb.WithElement(7, (sbyte)(-1)); if (vsb.GetElement(7) != -1) { return false; } - vsb = vsb.WithElement(15, -1); + vsb = vsb.WithElement(15, (sbyte)(-1)); if (vsb.GetElement(15) != -1) { return false; @@ -125,19 +125,19 @@ namespace GitHub_17957 public static bool Test256() { Vector256 vs = Vector256.Zero; - vs = vs.WithElement(0, -1); + vs = vs.WithElement(0, (short)(-1)); if (vs.GetElement(0) != -1) { return false; } - vs = vs.WithElement(3, -1); + vs = vs.WithElement(3, (short)(-1)); if (vs.GetElement(3) != -1) { return false; } - vs = vs.WithElement(9, -1); + vs = vs.WithElement(9, (short)(-1)); if (vs.GetElement(9) != -1) { return false; @@ -165,19 +165,19 @@ namespace GitHub_17957 Vector256 vsb = Vector256.Zero; - vsb = vsb.WithElement(0, -1); + vsb = vsb.WithElement(0, (sbyte)(-1)); if (vsb.GetElement(0) != -1) { return false; } - vsb = vsb.WithElement(7, -1); + vsb = vsb.WithElement(7, (sbyte)(-1)); if (vsb.GetElement(7) != -1) { return false; } - vsb = vsb.WithElement(16, -1); + vsb = vsb.WithElement(16, (sbyte)(-1)); if (vsb.GetElement(16) != -1) { return false; -- 2.7.4