diff options
author | Sivarv <sivarv@microsoft.com> | 2016-09-29 18:00:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-29 18:00:12 -0700 |
commit | b3f150d9701812bd4089002e7f4b6a0a679675cb (patch) | |
tree | 3ed21513ccc4bba1ad540c2d31010f0f6d248b9e /tests | |
parent | 89544de70145d43889b8b1de49cdda7ebadf0e9e (diff) | |
parent | 9efcc72485e2d9ede3234531600a0bd1a7fadebc (diff) | |
download | coreclr-b3f150d9701812bd4089002e7f4b6a0a679675cb.tar.gz coreclr-b3f150d9701812bd4089002e7f4b6a0a679675cb.tar.bz2 coreclr-b3f150d9701812bd4089002e7f4b6a0a679675cb.zip |
Merge pull request #7407 from sivarv/simdOpt
Optimize codegen when SIMD (in)Equality that produces bool result is compared against true/false.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/JIT/SIMD/VectorIntEquals.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/src/JIT/SIMD/VectorIntEquals.cs b/tests/src/JIT/SIMD/VectorIntEquals.cs index c5d818027c..fae49aac1d 100644 --- a/tests/src/JIT/SIMD/VectorIntEquals.cs +++ b/tests/src/JIT/SIMD/VectorIntEquals.cs @@ -39,6 +39,46 @@ internal partial class VectorTest return Fail; } + if (Vector<int>.Zero.Equals(B)) + { + return Fail; + } + + if (!(A == B)) + { + return Fail; + } + + if (A == Vector<int>.Zero) + { + return Fail; + } + + if (!(A != Vector<int>.Zero)) + { + return Fail; + } + + if (A != B) + { + return Fail; + } + + if (!(A != C)) + { + return Fail; + } + + if (!(Vector<int>.Zero != A)) + { + return Fail; + } + + if (Vector<int>.Zero != Vector<int>.Zero) + { + return Fail; + } + return Pass; } |