diff options
author | sivarv <sivarv@microsoft.com> | 2016-09-28 16:29:14 -0700 |
---|---|---|
committer | sivarv <sivarv@microsoft.com> | 2016-09-29 16:36:38 -0700 |
commit | 9efcc72485e2d9ede3234531600a0bd1a7fadebc (patch) | |
tree | 203ac433770574669d171624ad47219305485734 /tests | |
parent | f7b15f73ab734d43937a591dc58205d49913c346 (diff) | |
download | coreclr-9efcc72485e2d9ede3234531600a0bd1a7fadebc.tar.gz coreclr-9efcc72485e2d9ede3234531600a0bd1a7fadebc.tar.bz2 coreclr-9efcc72485e2d9ede3234531600a0bd1a7fadebc.zip |
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; } |