authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-23 02:05:24-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-23 02:05:24-05:00
logc86589a738e5053a26b2be7d156bcfee1565f00b
tree71b186ca97808438a0a236d2b3f2f1730d80a9f0
parentead7d15772587cecff69d8b8fac3b5122ff2b98c

disable f128 compiler_rt tests failing on windows

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}
3232
33test "addtf3" {33test "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);
3539
36 // NaN + any = NaN40 // 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}
7276
73test "subtf3" {77test "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 = qNaN82 // qNaN - any = qNaN
75 test__subtf3(qnan128, 0x1.23456789abcdefp+5, 0x7fff800000000000, 0x0);83 test__subtf3(qnan128, 0x1.23456789abcdefp+5, 0x7fff800000000000, 0x0);
7684
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}
1212
13test "fixtfdi" {13test "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));
1620
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}
1212
13test "fixtfsi" {13test "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));
1620
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}
1212
13test "fixtfti" {13test "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));
1620
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}
88
9test "fixunstfdi" {9test "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);
1115
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 {
9const inf128 = @bitCast(f128, @as(u128, 0x7fff0000000000000000000000000000));9const inf128 = @bitCast(f128, @as(u128, 0x7fff0000000000000000000000000000));
1010
11test "fixunstfsi" {11test "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 {
9const inf128 = @bitCast(f128, @as(u128, 0x7fff0000000000000000000000000000));9const inf128 = @bitCast(f128, @as(u128, 0x7fff0000000000000000000000000000));
1010
11test "fixunstfti" {11test "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);
1317
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}
88
9test "floattitf" {9test "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);
1115
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}
88
9test "floatuntitf" {9test "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);
1115
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}
46test "multf3" {46test "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 = qNaN51 // qNaN * any = qNaN
48 test__multf3(qnan128, 0x1.23456789abcdefp+5, 0x7fff800000000000, 0x0);52 test__multf3(qnan128, 0x1.23456789abcdefp+5, 0x7fff800000000000, 0x0);
4953
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}
152152
153test "trunctfsf2" {153test "trunctfsf2" {
154 if (@import("std").Target.current.isWindows()) {
155 // TODO https://github.com/ziglang/zig/issues/508
156 return error.SkipZigTest;
157 }
154 // qnan158 // qnan
155 test__trunctfsf2(@bitCast(f128, @as(u128, 0x7fff800000000000 << 64)), 0x7fc00000);159 test__trunctfsf2(@bitCast(f128, @as(u128, 0x7fff800000000000 << 64)), 0x7fc00000);
156 // nan160 // 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}
187191
188test "trunctfdf2" {192test "trunctfdf2" {
193 if (@import("std").Target.current.isWindows()) {
194 // TODO https://github.com/ziglang/zig/issues/508
195 return error.SkipZigTest;
196 }
189 // qnan197 // qnan
190 test__trunctfdf2(@bitCast(f128, @as(u128, 0x7fff800000000000 << 64)), 0x7ff8000000000000);198 test__trunctfdf2(@bitCast(f128, @as(u128, 0x7fff800000000000 << 64)), 0x7ff8000000000000);
191 // nan199 // nan