summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/test/builtins/Unit/divsc3_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/builtins/Unit/divsc3_test.c b/compiler-rt/test/builtins/Unit/divsc3_test.c
index f9ad42abcdf..5781cff4773 100644
--- a/compiler-rt/test/builtins/Unit/divsc3_test.c
+++ b/compiler-rt/test/builtins/Unit/divsc3_test.c
@@ -102,7 +102,7 @@ int test__divsc3(float a, float b, float c, float d)
{
float _Complex z = (a * c + b * d) / (c * c + d * d)
+ (b * c - a * d) / (c * c + d * d) * _Complex_I;
- if (r != z)
+ if (cabsf((r-z)/r) > 1.e-6)
return 1;
}
break;
OpenPOWER on IntegriCloud