authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-03 15:39:39-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-03 15:39:39-07:00
logcbdd21cd9ac8ccab923c1f27f472af747489f661
tree3f6945ec50731a334e5adc23cae808c078bd6967
parentb6981686649ab74b91ebb27bec8a29658b3d3923

std: disable tests regressed from LLVM 14


4 files changed, 22 insertions(+), 4 deletions(-)

lib/std/fmt.zig+6
...@@ -2623,6 +2623,12 @@ test "vector" {...@@ -2623,6 +2623,12 @@ test "vector" {
2623 return error.SkipZigTest;2623 return error.SkipZigTest;
2624 }2624 }
26252625
2626 if (builtin.zig_backend == .stage1) {
2627 // Regressed in LLVM 14:
2628 // https://github.com/llvm/llvm-project/issues/55522
2629 return error.SkipZigTest;
2630 }
2631
2626 const vbool: @Vector(4, bool) = [_]bool{ true, false, true, false };2632 const vbool: @Vector(4, bool) = [_]bool{ true, false, true, false };
2627 const vi64: @Vector(4, i64) = [_]i64{ -2, -1, 0, 1 };2633 const vi64: @Vector(4, i64) = [_]i64{ -2, -1, 0, 1 };
2628 const vu64: @Vector(4, u64) = [_]u64{ 1000, 2000, 3000, 4000 };2634 const vu64: @Vector(4, u64) = [_]u64{ 1000, 2000, 3000, 4000 };
lib/std/mem.zig+9-3
...@@ -331,6 +331,12 @@ pub fn zeroes(comptime T: type) T {...@@ -331,6 +331,12 @@ pub fn zeroes(comptime T: type) T {
331}331}
332332
333test "zeroes" {333test "zeroes" {
334 if (builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) {
335 // Regressed in LLVM 14:
336 // https://github.com/llvm/llvm-project/issues/55522
337 return error.SkipZigTest;
338 }
339
334 const C_struct = extern struct {340 const C_struct = extern struct {
335 x: u32,341 x: u32,
336 y: u32,342 y: u32,
...@@ -370,9 +376,9 @@ test "zeroes" {...@@ -370,9 +376,9 @@ test "zeroes" {
370 },376 },
371377
372 array: [2]u32,378 array: [2]u32,
373 vector_u32: meta.Vector(2, u32),379 vector_u32: @Vector(2, u32),
374 vector_f32: meta.Vector(2, f32),380 vector_f32: @Vector(2, f32),
375 vector_bool: meta.Vector(2, bool),381 vector_bool: @Vector(2, bool),
376 optional_int: ?u8,382 optional_int: ?u8,
377 empty: void,383 empty: void,
378 sentinel: [3:0]u8,384 sentinel: [3:0]u8,
lib/std/simd.zig+6
...@@ -382,6 +382,12 @@ test "vector prefix scan" {...@@ -382,6 +382,12 @@ test "vector prefix scan" {
382 return error.SkipZigTest;382 return error.SkipZigTest;
383 }383 }
384384
385 if (builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) {
386 // Regressed in LLVM 14:
387 // https://github.com/llvm/llvm-project/issues/55522
388 return error.SkipZigTest;
389 }
390
385 const int_base = @Vector(4, i32){ 11, 23, 9, -21 };391 const int_base = @Vector(4, i32){ 11, 23, 9, -21 };
386 const float_base = @Vector(4, f32){ 2, 0.5, -10, 6.54321 };392 const float_base = @Vector(4, f32){ 2, 0.5, -10, 6.54321 };
387 const bool_base = @Vector(4, bool){ true, false, true, false };393 const bool_base = @Vector(4, bool){ true, false, true, false };
lib/std/zig/fmt.zig+1-1
...@@ -41,7 +41,7 @@ test "isValidId" {...@@ -41,7 +41,7 @@ test "isValidId" {
41 try std.testing.expect(!isValidId("a b c"));41 try std.testing.expect(!isValidId("a b c"));
42 try std.testing.expect(!isValidId("3d"));42 try std.testing.expect(!isValidId("3d"));
43 try std.testing.expect(!isValidId("enum"));43 try std.testing.expect(!isValidId("enum"));
44 try std.testing.expect(!isValidId("i386"));44 try std.testing.expect(isValidId("i386"));
45}45}
4646
47/// Print the string as escaped contents of a double quoted or single-quoted string.47/// Print the string as escaped contents of a double quoted or single-quoted string.