authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-02-24 14:49:27+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-02-25 19:31:00+01:00
logad5515bed8789cb7688b3bd6c098be3a16b16d47
treeea4fb374c7d3a8447a30796f3e1476c7af3bd89d
parentc7e99b93a4c40c664009918d689ebed1e419fcb8

compiler-rt: Add tests from llvm/llvm-project#119449.


3 files changed, 3 insertions(+), 0 deletions(-)

lib/compiler_rt/divdf3_test.zig+1
......@@ -31,4 +31,5 @@ fn test__divdf3(a: f64, b: f64, expected: u64) !void {
3131test "divdf3" {
3232 try test__divdf3(1.0, 3.0, 0x3fd5555555555555);
3333 try test__divdf3(4.450147717014403e-308, 2.0, 0x10000000000000);
34 try test__divdf3(1.0, 0x1.fffffffffffffp-1, 0x3ff0000000000001);
3435}
lib/compiler_rt/divsf3_test.zig+1
......@@ -31,4 +31,5 @@ fn test__divsf3(a: f32, b: f32, expected: u32) !void {
3131test "divsf3" {
3232 try test__divsf3(1.0, 3.0, 0x3EAAAAAB);
3333 try test__divsf3(2.3509887e-38, 2.0, 0x00800000);
34 try test__divsf3(1.0, 0x1.fffffep-1, 0x3f800001);
3435}
lib/compiler_rt/divtf3_test.zig+1
......@@ -45,4 +45,5 @@ test "divtf3" {
4545 try test__divtf3(0x1.2d3456f789ba6322bc665544edefp-234, 0x1.eddcdba39f3c8b7a36564354321fp-4455, 0x507b38442b539266, 0x22ce0f1d024e1252);
4646 try test__divtf3(0x1.2345f6b77b7a8953365433abcdefp+234, 0x1.edcba987d6bb3aa467754354321fp-4055, 0x50bf2e02f0798d36, 0x5e6fcb6b60044078);
4747 try test__divtf3(6.72420628622418701252535563464350521E-4932, 2.0, 0x0001000000000000, 0);
48 try test__divtf3(1.0, 0x1.ffffffffffffffffffffffffffffp-1, 0x3FFF000000000000, 1);
4849}