mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
std: disable tests regressed from LLVM 14
This commit is contained in:
parent
b698168664
commit
cbdd21cd9a
@ -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 };
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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 };
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user