diff --git a/src/tests/JIT/SIMD/CircleInConvex.cs b/src/tests/JIT/SIMD/CircleInConvex.cs index 46aee582043458..ee3fde6351afbc 100644 --- a/src/tests/JIT/SIMD/CircleInConvex.cs +++ b/src/tests/JIT/SIMD/CircleInConvex.cs @@ -189,10 +189,10 @@ static public Boolean FindCircle(List points, out Point O, out float r) static int cmp(Point a, Point b) { - if (a.X < b.X || a.X == b.X && a.Y < b.Y) - return 1; + if (a.X == b.X) + return a.Y < b.Y ? 1 : a.Y > b.Y ? -1 : 0; else - return 0; + return a.X < b.X ? 1 : a.X > b.X ? -1 : 0; } static bool cw(Point a, Point b, Point c) @@ -258,8 +258,8 @@ static int Main(string[] args) float r; FindCircle(points, out O, out r); - float expRes = 75656240.0F; - float ulp = 8.0F; + float expRes = 1191233374.188854F; + float ulp = 384.0F; if (Math.Abs(r - expRes) <= ulp) return 100; return 0;