diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-07-03 15:39:39 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-07-03 15:39:39 -0700 |
| commit | cbdd21cd9ac8ccab923c1f27f472af747489f661 (patch) | |
| tree | 3f6945ec50731a334e5adc23cae808c078bd6967 /lib/std | |
| parent | b6981686649ab74b91ebb27bec8a29658b3d3923 (diff) | |
| download | zig-cbdd21cd9ac8ccab923c1f27f472af747489f661.tar.gz zig-cbdd21cd9ac8ccab923c1f27f472af747489f661.zip | |
std: disable tests regressed from LLVM 14
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/fmt.zig | 6 | ||||
| -rw-r--r-- | lib/std/mem.zig | 12 | ||||
| -rw-r--r-- | lib/std/simd.zig | 6 | ||||
| -rw-r--r-- | lib/std/zig/fmt.zig | 2 |
4 files changed, 22 insertions, 4 deletions
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. |
