summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorsivarv <sivarv@microsoft.com>2016-09-28 16:29:14 -0700
committersivarv <sivarv@microsoft.com>2016-09-29 16:36:38 -0700
commit9efcc72485e2d9ede3234531600a0bd1a7fadebc (patch)
tree203ac433770574669d171624ad47219305485734 /tests
parentf7b15f73ab734d43937a591dc58205d49913c346 (diff)
downloadcoreclr-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.cs40
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;
}