Address feedback.
authorPat Gavlin <pagavlin@microsoft.com>
Fri, 17 Mar 2017 18:02:24 +0000 (11:02 -0700)
committerPat Gavlin <pagavlin@microsoft.com>
Fri, 17 Mar 2017 18:02:24 +0000 (11:02 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/287464997f594f3468e59598e08fee08f697ee44

src/coreclr/tests/src/JIT/Performance/CodeQuality/SIMD/SeekUnroll/SeekUnroll.cs

index 3915caf..81d9c09 100644 (file)
@@ -151,7 +151,17 @@ public static class SeekUnroll
             InnerIterations = 100000;
         }
 
-        int manualLoopCount = (args != null && args.Length >= 1) ? int.Parse(args[0]) : 1;
+        int manualLoopCount = 1;
+        if (args == null || args.Length == 0)
+        {
+            Console.WriteLine("Warning: no iteration count specified; defaulting to 1 iteration per case");
+            Console.WriteLine("To use multiple iterations per case, pass the desired number of iterations as the first command-line argument to this test");
+        }
+        else
+        {
+            manualLoopCount = int.Parse(args[0]);
+        }
+
         foreach(int index in IndicesToTest)
         {
             ManualLoopTimes = new long[manualLoopCount];