diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig index fb826f4562..583f4af896 100644 --- a/lib/std/fmt.zig +++ b/lib/std/fmt.zig @@ -2623,6 +2623,12 @@ test "vector" { return error.SkipZigTest; } + if (builtin.zig_backend == .stage1) { + // Regressed in LLVM 14: + // https://github.com/llvm/llvm-project/issues/55522 + return error.SkipZigTest; + } + const vbool: @Vector(4, bool) = [_]bool{ true, false, true, false }; const vi64: @Vector(4, i64) = [_]i64{ -2, -1, 0, 1 }; const vu64: @Vector(4, u64) = [_]u64{ 1000, 2000, 3000, 4000 }; diff --git a/lib/std/mem.zig b/lib/std/mem.zig index f54610f060..13322c9bee 100644 --- a/lib/std/mem.zig +++ b/lib/std/mem.zig @@ -331,6 +331,12 @@ pub fn zeroes(comptime T: type) T { } test "zeroes" { + if (builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) { + // Regressed in LLVM 14: + // https://github.com/llvm/llvm-project/issues/55522 + return error.SkipZigTest; + } + const C_struct = extern struct { x: u32, y: u32, @@ -370,9 +376,9 @@ test "zeroes" { }, array: [2]u32, - vector_u32: meta.Vector(2, u32), - vector_f32: meta.Vector(2, f32), - vector_bool: meta.Vector(2, bool), + vector_u32: @Vector(2, u32), + vector_f32: @Vector(2, f32), + vector_bool: @Vector(2, bool), optional_int: ?u8, empty: void, sentinel: [3:0]u8, diff --git a/lib/std/simd.zig b/lib/std/simd.zig index a30622aef6..19205e13fb 100644 --- a/lib/std/simd.zig +++ b/lib/std/simd.zig @@ -382,6 +382,12 @@ test "vector prefix scan" { return error.SkipZigTest; } + if (builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) { + // Regressed in LLVM 14: + // https://github.com/llvm/llvm-project/issues/55522 + return error.SkipZigTest; + } + const int_base = @Vector(4, i32){ 11, 23, 9, -21 }; const float_base = @Vector(4, f32){ 2, 0.5, -10, 6.54321 }; const bool_base = @Vector(4, bool){ true, false, true, false }; diff --git a/lib/std/zig/fmt.zig b/lib/std/zig/fmt.zig index 7ddad7ebcc..bc9d694b0e 100644 --- a/lib/std/zig/fmt.zig +++ b/lib/std/zig/fmt.zig @@ -41,7 +41,7 @@ test "isValidId" { try std.testing.expect(!isValidId("a b c")); try std.testing.expect(!isValidId("3d")); try std.testing.expect(!isValidId("enum")); - try std.testing.expect(!isValidId("i386")); + try std.testing.expect(isValidId("i386")); } /// Print the string as escaped contents of a double quoted or single-quoted string.