diff options
author | Tanner Gooding <tagoo@outlook.com> | 2019-02-19 13:24:30 -0800 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-02-19 13:24:30 -0800 |
commit | 50c44bec9c38f4d347c945d2034eb6a933680e36 (patch) | |
tree | 7d95d247042bc99e17df3d03e222db99e0cb67c7 /tests/src/JIT | |
parent | 11480c45ee53ad965711c6881798dbe542ff45a3 (diff) | |
download | coreclr-50c44bec9c38f4d347c945d2034eb6a933680e36.tar.gz coreclr-50c44bec9c38f4d347c945d2034eb6a933680e36.tar.bz2 coreclr-50c44bec9c38f4d347c945d2034eb6a933680e36.zip |
Fixing extension method overload resolution for some S.R.I.Vector methods (#22696)
Diffstat (limited to 'tests/src/JIT')
-rw-r--r-- | tests/src/JIT/HardwareIntrinsics/X86/Regression/GitHub_17957/GitHub_17957.cs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/src/JIT/HardwareIntrinsics/X86/Regression/GitHub_17957/GitHub_17957.cs b/tests/src/JIT/HardwareIntrinsics/X86/Regression/GitHub_17957/GitHub_17957.cs index 1e65f75a68..19dea560a4 100644 --- a/tests/src/JIT/HardwareIntrinsics/X86/Regression/GitHub_17957/GitHub_17957.cs +++ b/tests/src/JIT/HardwareIntrinsics/X86/Regression/GitHub_17957/GitHub_17957.cs @@ -17,19 +17,19 @@ namespace GitHub_17957 public static bool Test128() { Vector128<short> vs = Vector128<short>.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<sbyte> vsb = Vector128<sbyte>.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<short> vs = Vector256<short>.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<sbyte> vsb = Vector256<sbyte>.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; |