[builtins] Fix divtf3_test.c
authorAnatoly Trosinenko <atrosinenko@accesssoftek.com>
Tue, 1 Sep 2020 21:14:27 +0000 (00:14 +0300)
committerAnatoly Trosinenko <atrosinenko@accesssoftek.com>
Tue, 1 Sep 2020 21:19:00 +0000 (00:19 +0300)
Fixes 93eed63d2f3188 [builtins] Make __div[sdt]f3 handle denormal results.

compiler-rt/test/builtins/Unit/divtf3_test.c

index f77f4cf..927d0b8 100644 (file)
@@ -150,7 +150,7 @@ int main()
     if (test__divtf3(0x1.0p-16382L, 2.L, UINT64_C(0x0000800000000000), UINT64_C(0x0)))
       return 1;
     // smallest subnormal result
-    if (test__divtf3(0x1.0p-1022L, 0x1p+52L, UINT64_C(0x0), UINT64_C(0x1)))
+    if (test__divtf3(0x1.0p-16382L, 0x1p+112L, UINT64_C(0x0), UINT64_C(0x1)))
       return 1;
 
     // any / any