summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSivarv <sivarv@microsoft.com>2016-10-21 19:36:25 -0700
committerGitHub <noreply@github.com>2016-10-21 19:36:25 -0700
commit437b45edab4d07adc220607a3448624ccfcdab9f (patch)
tree58228118c12b3971eed134a689b787b05c7bb069 /tests
parent15ea0086a7e6f87e8237923684e100e3e1f44698 (diff)
parent1c8f29584f5ddebc4ea412283ca3811a0932ed22 (diff)
downloadcoreclr-437b45edab4d07adc220607a3448624ccfcdab9f.tar.gz
coreclr-437b45edab4d07adc220607a3448624ccfcdab9f.tar.bz2
coreclr-437b45edab4d07adc220607a3448624ccfcdab9f.zip
Merge pull request #7749 from sivarv/VectorIntDot
Recognize Vector<int>.Dot on AVX as a JIT intrinsic.
Diffstat (limited to 'tests')
-rw-r--r--tests/src/JIT/SIMD/VectorDot.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/src/JIT/SIMD/VectorDot.cs b/tests/src/JIT/SIMD/VectorDot.cs
index 2efe79e5ab..22c1493394 100644
--- a/tests/src/JIT/SIMD/VectorDot.cs
+++ b/tests/src/JIT/SIMD/VectorDot.cs
@@ -113,12 +113,17 @@ internal partial class VectorTest
if (VectorDotTest<ulong>.VectorDot(3ul, 2ul, 6ul * (ulong)Vector<ulong>.Count) != Pass) returnVal = Fail;
JitLog jitLog = new JitLog();
- // Dot is only recognized as an intrinsic for floating point element types.
+ // Dot is only recognized as an intrinsic for floating point element types
+ // and Vector<int> on AVX.
if (!jitLog.Check("Dot", "Single")) returnVal = Fail;
if (!jitLog.Check("Dot", "Double")) returnVal = Fail;
if (!jitLog.Check("System.Numerics.Vector4:Dot")) returnVal = Fail;
if (!jitLog.Check("System.Numerics.Vector3:Dot")) returnVal = Fail;
if (!jitLog.Check("System.Numerics.Vector2:Dot")) returnVal = Fail;
+ if (Vector<int>.Count == 8)
+ {
+ if (!jitLog.Check("Dot", "Int32")) returnVal = Fail;
+ }
jitLog.Dispose();
return returnVal;