| author | |
| committer | |
| log | c86589a738e5053a26b2be7d156bcfee1565f00b |
| tree | 71b186ca97808438a0a236d2b3f2f1730d80a9f0 |
| parent | ead7d15772587cecff69d8b8fac3b5122ff2b98c |
These were never working with native CPU features. In this branch,
we fix native CPU features not being enabled on Windows, and regress
f128 language features. In the llvm10 branch, all this is fixed,
and the tests are re-enabled.11 files changed, 52 insertions(+), 0 deletions(-)
lib/std/special/compiler_rt/addXf3_test.zig+8| ... | @@ -31,6 +31,10 @@ fn test__addtf3(a: f128, b: f128, expected_hi: u64, expected_lo: u64) void { | ... | @@ -31,6 +31,10 @@ fn test__addtf3(a: f128, b: f128, expected_hi: u64, expected_lo: u64) void { |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | test "addtf3" { | 33 | test "addtf3" { |
| 34 | if (@import("std").Target.current.isWindows()) { | ||
| 35 | // TODO https://github.com/ziglang/zig/issues/508 | ||
| 36 | return error.SkipZigTest; | ||
| 37 | } | ||
| 34 | test__addtf3(qnan128, 0x1.23456789abcdefp+5, 0x7fff800000000000, 0x0); | 38 | test__addtf3(qnan128, 0x1.23456789abcdefp+5, 0x7fff800000000000, 0x0); |
| 35 | 39 | ||
| 36 | // NaN + any = NaN | 40 | // NaN + any = NaN |
| ... | @@ -71,6 +75,10 @@ fn test__subtf3(a: f128, b: f128, expected_hi: u64, expected_lo: u64) void { | ... | @@ -71,6 +75,10 @@ fn test__subtf3(a: f128, b: f128, expected_hi: u64, expected_lo: u64) void { |
| 71 | } | 75 | } |
| 72 | 76 | ||
| 73 | test "subtf3" { | 77 | test "subtf3" { |
| 78 | if (@import("std").Target.current.isWindows()) { | ||
| 79 | // TODO https://github.com/ziglang/zig/issues/508 | ||
| 80 | return error.SkipZigTest; | ||
| 81 | } | ||
| 74 | // qNaN - any = qNaN | 82 | // qNaN - any = qNaN |
| 75 | test__subtf3(qnan128, 0x1.23456789abcdefp+5, 0x7fff800000000000, 0x0); | 83 | test__subtf3(qnan128, 0x1.23456789abcdefp+5, 0x7fff800000000000, 0x0); |
| 76 | 84 |
lib/std/special/compiler_rt/fixtfdi_test.zig+4| ... | @@ -11,6 +11,10 @@ fn test__fixtfdi(a: f128, expected: i64) void { | ... | @@ -11,6 +11,10 @@ fn test__fixtfdi(a: f128, expected: i64) void { |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | test "fixtfdi" { | 13 | test "fixtfdi" { |
| 14 | if (@import("std").Target.current.isWindows()) { | ||
| 15 | // TODO https://github.com/ziglang/zig/issues/508 | ||
| 16 | return error.SkipZigTest; | ||
| 17 | } | ||
| 14 | //warn("\n", .{}); | 18 | //warn("\n", .{}); |
| 15 | test__fixtfdi(-math.f128_max, math.minInt(i64)); | 19 | test__fixtfdi(-math.f128_max, math.minInt(i64)); |
| 16 | 20 |
lib/std/special/compiler_rt/fixtfsi_test.zig+4| ... | @@ -11,6 +11,10 @@ fn test__fixtfsi(a: f128, expected: i32) void { | ... | @@ -11,6 +11,10 @@ fn test__fixtfsi(a: f128, expected: i32) void { |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | test "fixtfsi" { | 13 | test "fixtfsi" { |
| 14 | if (@import("std").Target.current.isWindows()) { | ||
| 15 | // TODO https://github.com/ziglang/zig/issues/508 | ||
| 16 | return error.SkipZigTest; | ||
| 17 | } | ||
| 14 | //warn("\n", .{}); | 18 | //warn("\n", .{}); |
| 15 | test__fixtfsi(-math.f128_max, math.minInt(i32)); | 19 | test__fixtfsi(-math.f128_max, math.minInt(i32)); |
| 16 | 20 |
lib/std/special/compiler_rt/fixtfti_test.zig+4| ... | @@ -11,6 +11,10 @@ fn test__fixtfti(a: f128, expected: i128) void { | ... | @@ -11,6 +11,10 @@ fn test__fixtfti(a: f128, expected: i128) void { |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | test "fixtfti" { | 13 | test "fixtfti" { |
| 14 | if (@import("std").Target.current.isWindows()) { | ||
| 15 | // TODO https://github.com/ziglang/zig/issues/508 | ||
| 16 | return error.SkipZigTest; | ||
| 17 | } | ||
| 14 | //warn("\n", .{}); | 18 | //warn("\n", .{}); |
| 15 | test__fixtfti(-math.f128_max, math.minInt(i128)); | 19 | test__fixtfti(-math.f128_max, math.minInt(i128)); |
| 16 | 20 |
lib/std/special/compiler_rt/fixunstfdi_test.zig+4| ... | @@ -7,6 +7,10 @@ fn test__fixunstfdi(a: f128, expected: u64) void { | ... | @@ -7,6 +7,10 @@ fn test__fixunstfdi(a: f128, expected: u64) void { |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | test "fixunstfdi" { | 9 | test "fixunstfdi" { |
| 10 | if (@import("std").Target.current.isWindows()) { | ||
| 11 | // TODO https://github.com/ziglang/zig/issues/508 | ||
| 12 | return error.SkipZigTest; | ||
| 13 | } | ||
| 10 | test__fixunstfdi(0.0, 0); | 14 | test__fixunstfdi(0.0, 0); |
| 11 | 15 | ||
| 12 | test__fixunstfdi(0.5, 0); | 16 | test__fixunstfdi(0.5, 0); |
lib/std/special/compiler_rt/fixunstfsi_test.zig+4| ... | @@ -9,6 +9,10 @@ fn test__fixunstfsi(a: f128, expected: u32) void { | ... | @@ -9,6 +9,10 @@ fn test__fixunstfsi(a: f128, expected: u32) void { |
| 9 | const inf128 = @bitCast(f128, @as(u128, 0x7fff0000000000000000000000000000)); | 9 | const inf128 = @bitCast(f128, @as(u128, 0x7fff0000000000000000000000000000)); |
| 10 | 10 | ||
| 11 | test "fixunstfsi" { | 11 | test "fixunstfsi" { |
| 12 | if (@import("std").Target.current.isWindows()) { | ||
| 13 | // TODO https://github.com/ziglang/zig/issues/508 | ||
| 14 | return error.SkipZigTest; | ||
| 15 | } | ||
| 12 | test__fixunstfsi(inf128, 0xffffffff); | 16 | test__fixunstfsi(inf128, 0xffffffff); |
| 13 | test__fixunstfsi(0, 0x0); | 17 | test__fixunstfsi(0, 0x0); |
| 14 | test__fixunstfsi(0x1.23456789abcdefp+5, 0x24); | 18 | test__fixunstfsi(0x1.23456789abcdefp+5, 0x24); |
lib/std/special/compiler_rt/fixunstfti_test.zig+4| ... | @@ -9,6 +9,10 @@ fn test__fixunstfti(a: f128, expected: u128) void { | ... | @@ -9,6 +9,10 @@ fn test__fixunstfti(a: f128, expected: u128) void { |
| 9 | const inf128 = @bitCast(f128, @as(u128, 0x7fff0000000000000000000000000000)); | 9 | const inf128 = @bitCast(f128, @as(u128, 0x7fff0000000000000000000000000000)); |
| 10 | 10 | ||
| 11 | test "fixunstfti" { | 11 | test "fixunstfti" { |
| 12 | if (@import("std").Target.current.isWindows()) { | ||
| 13 | // TODO https://github.com/ziglang/zig/issues/508 | ||
| 14 | return error.SkipZigTest; | ||
| 15 | } | ||
| 12 | test__fixunstfti(inf128, 0xffffffffffffffffffffffffffffffff); | 16 | test__fixunstfti(inf128, 0xffffffffffffffffffffffffffffffff); |
| 13 | 17 | ||
| 14 | test__fixunstfti(0.0, 0); | 18 | test__fixunstfti(0.0, 0); |
lib/std/special/compiler_rt/floattitf_test.zig+4| ... | @@ -7,6 +7,10 @@ fn test__floattitf(a: i128, expected: f128) void { | ... | @@ -7,6 +7,10 @@ fn test__floattitf(a: i128, expected: f128) void { |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | test "floattitf" { | 9 | test "floattitf" { |
| 10 | if (@import("std").Target.current.isWindows()) { | ||
| 11 | // TODO https://github.com/ziglang/zig/issues/508 | ||
| 12 | return error.SkipZigTest; | ||
| 13 | } | ||
| 10 | test__floattitf(0, 0.0); | 14 | test__floattitf(0, 0.0); |
| 11 | 15 | ||
| 12 | test__floattitf(1, 1.0); | 16 | test__floattitf(1, 1.0); |
lib/std/special/compiler_rt/floatuntitf_test.zig+4| ... | @@ -7,6 +7,10 @@ fn test__floatuntitf(a: u128, expected: f128) void { | ... | @@ -7,6 +7,10 @@ fn test__floatuntitf(a: u128, expected: f128) void { |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | test "floatuntitf" { | 9 | test "floatuntitf" { |
| 10 | if (@import("std").Target.current.isWindows()) { | ||
| 11 | // TODO https://github.com/ziglang/zig/issues/508 | ||
| 12 | return error.SkipZigTest; | ||
| 13 | } | ||
| 10 | test__floatuntitf(0, 0.0); | 14 | test__floatuntitf(0, 0.0); |
| 11 | 15 | ||
| 12 | test__floatuntitf(1, 1.0); | 16 | test__floatuntitf(1, 1.0); |
lib/std/special/compiler_rt/mulXf3_test.zig+4| ... | @@ -44,6 +44,10 @@ fn makeNaN128(rand: u64) f128 { | ... | @@ -44,6 +44,10 @@ fn makeNaN128(rand: u64) f128 { |
| 44 | return float_result; | 44 | return float_result; |
| 45 | } | 45 | } |
| 46 | test "multf3" { | 46 | test "multf3" { |
| 47 | if (@import("std").Target.current.isWindows()) { | ||
| 48 | // TODO https://github.com/ziglang/zig/issues/508 | ||
| 49 | return error.SkipZigTest; | ||
| 50 | } | ||
| 47 | // qNaN * any = qNaN | 51 | // qNaN * any = qNaN |
| 48 | test__multf3(qnan128, 0x1.23456789abcdefp+5, 0x7fff800000000000, 0x0); | 52 | test__multf3(qnan128, 0x1.23456789abcdefp+5, 0x7fff800000000000, 0x0); |
| 49 | 53 |
lib/std/special/compiler_rt/truncXfYf2_test.zig+8| ... | @@ -151,6 +151,10 @@ fn test__trunctfsf2(a: f128, expected: u32) void { | ... | @@ -151,6 +151,10 @@ fn test__trunctfsf2(a: f128, expected: u32) void { |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | test "trunctfsf2" { | 153 | test "trunctfsf2" { |
| 154 | if (@import("std").Target.current.isWindows()) { | ||
| 155 | // TODO https://github.com/ziglang/zig/issues/508 | ||
| 156 | return error.SkipZigTest; | ||
| 157 | } | ||
| 154 | // qnan | 158 | // qnan |
| 155 | test__trunctfsf2(@bitCast(f128, @as(u128, 0x7fff800000000000 << 64)), 0x7fc00000); | 159 | test__trunctfsf2(@bitCast(f128, @as(u128, 0x7fff800000000000 << 64)), 0x7fc00000); |
| 156 | // nan | 160 | // nan |
| ... | @@ -186,6 +190,10 @@ fn test__trunctfdf2(a: f128, expected: u64) void { | ... | @@ -186,6 +190,10 @@ fn test__trunctfdf2(a: f128, expected: u64) void { |
| 186 | } | 190 | } |
| 187 | 191 | ||
| 188 | test "trunctfdf2" { | 192 | test "trunctfdf2" { |
| 193 | if (@import("std").Target.current.isWindows()) { | ||
| 194 | // TODO https://github.com/ziglang/zig/issues/508 | ||
| 195 | return error.SkipZigTest; | ||
| 196 | } | ||
| 189 | // qnan | 197 | // qnan |
| 190 | test__trunctfdf2(@bitCast(f128, @as(u128, 0x7fff800000000000 << 64)), 0x7ff8000000000000); | 198 | test__trunctfdf2(@bitCast(f128, @as(u128, 0x7fff800000000000 << 64)), 0x7ff8000000000000); |
| 191 | // nan | 199 | // nan |