Skip to content

Commit ff18275

Browse files
committed
compiler-rt: Add tests from llvm/llvm-project#119449.
1 parent 1cc388d commit ff18275

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

lib/compiler_rt/divdf3_test.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ fn test__divdf3(a: f64, b: f64, expected: u64) !void {
3131
test "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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ fn test__divsf3(a: f32, b: f32, expected: u32) !void {
3131
test "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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

0 commit comments

Comments
 (0)