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" {
26232623 return error.SkipZigTest;
26242624 }
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
26262632 const vbool: @Vector(4, bool) = [_]bool{ true, false, true, false };
26272633 const vi64: @Vector(4, i64) = [_]i64{ -2, -1, 0, 1 };
26282634 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 {
331331}
332332
333333test "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
334340 const C_struct = extern struct {
335341 x: u32,
336342 y: u32,
......@@ -370,9 +376,9 @@ test "zeroes" {
370376 },
371377
372378 array: [2]u32,
373 vector_u32: meta.Vector(2, u32),
374 vector_f32: meta.Vector(2, f32),
375 vector_bool: meta.Vector(2, bool),
379 vector_u32: @Vector(2, u32),
380 vector_f32: @Vector(2, f32),
381 vector_bool: @Vector(2, bool),
376382 optional_int: ?u8,
377383 empty: void,
378384 sentinel: [3:0]u8,
lib/std/simd.zig+6
......@@ -382,6 +382,12 @@ test "vector prefix scan" {
382382 return error.SkipZigTest;
383383 }
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
385391 const int_base = @Vector(4, i32){ 11, 23, 9, -21 };
386392 const float_base = @Vector(4, f32){ 2, 0.5, -10, 6.54321 };
387393 const bool_base = @Vector(4, bool){ true, false, true, false };
lib/std/zig/fmt.zig+1-1
......@@ -41,7 +41,7 @@ test "isValidId" {
4141 try std.testing.expect(!isValidId("a b c"));
4242 try std.testing.expect(!isValidId("3d"));
4343 try std.testing.expect(!isValidId("enum"));
44 try std.testing.expect(!isValidId("i386"));
44 try std.testing.expect(isValidId("i386"));
4545}
4646
4747/// Print the string as escaped contents of a double quoted or single-quoted string.