Fix JIT.SIMD.VectorUtil.CheckValue<T>
authorSteve MacLean <sdmaclea.qdt@qualcommdatacenter.com>
Fri, 9 Feb 2018 21:01:05 +0000 (16:01 -0500)
committerSteve MacLean <sdmaclea.qdt@qualcommdatacenter.com>
Fri, 9 Feb 2018 21:13:20 +0000 (16:13 -0500)
tests/src/JIT/SIMD/VectorUtil.cs

index 2249ff8..8acc0ec 100644 (file)
@@ -26,7 +26,14 @@ internal partial class VectorTest
         }
         if (returnVal == false)
         {
-            Console.WriteLine("CheckValue failed for type " + typeof(T).ToString() + ". Expected: {0} (0x{0:X}), Got: {1} (0x{1:X})", expectedValue, value);
+            if ((typeof(T) == typeof(double)) || (typeof(T) == typeof(float)))
+            {
+                Console.WriteLine("CheckValue failed for type " + typeof(T).ToString() + ". Expected: {0} , Got: {1}", expectedValue, value);
+            }
+            else
+            {
+                Console.WriteLine("CheckValue failed for type " + typeof(T).ToString() + ". Expected: {0} (0x{0:X}), Got: {1} (0x{1:X})", expectedValue, value);
+            }
         }
         return returnVal;
     }