| author | |
| committer | |
| log | bae68c8a458690a7fedeed7541f80b960a4bd1f6 |
| tree | 5e47d5a3ed96a6b22a6d29a6fca3bcf41403bb5a |
| parent | ce07ba754c877ae376b002e5bd6aad238d9f3d3d |
18 files changed, 3 insertions(+), 24 deletions(-)
test/behavior/align.zig-1| ... | @@ -432,7 +432,6 @@ test "read 128-bit field from default aligned struct in stack memory" { | ... | @@ -432,7 +432,6 @@ test "read 128-bit field from default aligned struct in stack memory" { |
| 432 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; // TODO | 432 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; // TODO |
| 433 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 433 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 434 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 434 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 435 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 436 | 435 | ||
| 437 | var default_aligned = DefaultAligned{ | 436 | var default_aligned = DefaultAligned{ |
| 438 | .nevermind = 1, | 437 | .nevermind = 1, |
test/behavior/array.zig-1| ... | @@ -1077,7 +1077,6 @@ test "initialize sentinel-terminated slice with reference to empty array initial | ... | @@ -1077,7 +1077,6 @@ test "initialize sentinel-terminated slice with reference to empty array initial |
| 1077 | } | 1077 | } |
| 1078 | 1078 | ||
| 1079 | test "initialize sentinel-terminated many-pointer with reference to empty array initializer" { | 1079 | test "initialize sentinel-terminated many-pointer with reference to empty array initializer" { |
| 1080 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 1081 | const a: [*:0]const u8 = &.{}; | 1080 | const a: [*:0]const u8 = &.{}; |
| 1082 | comptime assert(a[0] == 0); | 1081 | comptime assert(a[0] == 0); |
| 1083 | } | 1082 | } |
test/behavior/cast.zig-2| ... | @@ -433,8 +433,6 @@ test "implicit cast from *[N]T to [*c]T" { | ... | @@ -433,8 +433,6 @@ test "implicit cast from *[N]T to [*c]T" { |
| 433 | } | 433 | } |
| 434 | 434 | ||
| 435 | test "*usize to *void" { | 435 | test "*usize to *void" { |
| 436 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 437 | |||
| 438 | var i = @as(usize, 0); | 436 | var i = @as(usize, 0); |
| 439 | const v: *void = @ptrCast(&i); | 437 | const v: *void = @ptrCast(&i); |
| 440 | v.* = {}; | 438 | v.* = {}; |
test/behavior/destructure.zig-2| ... | @@ -94,8 +94,6 @@ test "destructure from labeled block" { | ... | @@ -94,8 +94,6 @@ test "destructure from labeled block" { |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | test "destructure tuple value" { | 96 | test "destructure tuple value" { |
| 97 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 98 | |||
| 99 | const tup: struct { f32, u32, i64 } = .{ 10.0, 20, 30 }; | 97 | const tup: struct { f32, u32, i64 } = .{ 10.0, 20, 30 }; |
| 100 | const x, const y, const z = tup; | 98 | const x, const y, const z = tup; |
| 101 | 99 |
test/behavior/error.zig-2| ... | @@ -145,8 +145,6 @@ test "implicit cast to optional to error union to return result loc" { | ... | @@ -145,8 +145,6 @@ test "implicit cast to optional to error union to return result loc" { |
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | test "fn returning empty error set can be passed as fn returning any error" { | 147 | test "fn returning empty error set can be passed as fn returning any error" { |
| 148 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 149 | |||
| 150 | entry(); | 148 | entry(); |
| 151 | comptime entry(); | 149 | comptime entry(); |
| 152 | } | 150 | } |
test/behavior/eval.zig-2| ... | @@ -1445,8 +1445,6 @@ test "struct in comptime false branch is not evaluated" { | ... | @@ -1445,8 +1445,6 @@ test "struct in comptime false branch is not evaluated" { |
| 1445 | } | 1445 | } |
| 1446 | 1446 | ||
| 1447 | test "result of nested switch assigned to variable" { | 1447 | test "result of nested switch assigned to variable" { |
| 1448 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; // TODO | ||
| 1449 | |||
| 1450 | var zds: u32 = 0; | 1448 | var zds: u32 = 0; |
| 1451 | zds = switch (zds) { | 1449 | zds = switch (zds) { |
| 1452 | 0 => switch (zds) { | 1450 | 0 => switch (zds) { |
test/behavior/fn.zig-1| ... | @@ -292,7 +292,6 @@ fn voidFun(a: i32, b: void, c: i32, d: void) !void { | ... | @@ -292,7 +292,6 @@ fn voidFun(a: i32, b: void, c: i32, d: void) !void { |
| 292 | 292 | ||
| 293 | test "call function with empty string" { | 293 | test "call function with empty string" { |
| 294 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 294 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 295 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 296 | 295 | ||
| 297 | acceptsString(""); | 296 | acceptsString(""); |
| 298 | } | 297 | } |
test/behavior/generics.zig-1| ... | @@ -519,7 +519,6 @@ test "call generic function with from function called by the generic function" { | ... | @@ -519,7 +519,6 @@ test "call generic function with from function called by the generic function" { |
| 519 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 519 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 520 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 520 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 521 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 521 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 522 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 523 | 522 | ||
| 524 | const GET = struct { | 523 | const GET = struct { |
| 525 | key: []const u8, | 524 | key: []const u8, |
test/behavior/globals.zig-1| ... | @@ -16,7 +16,6 @@ var vpos = @Vector(2, f32){ 0.0, 0.0 }; | ... | @@ -16,7 +16,6 @@ var vpos = @Vector(2, f32){ 0.0, 0.0 }; |
| 16 | test "store to global vector" { | 16 | test "store to global vector" { |
| 17 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; | 17 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; |
| 18 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 18 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 19 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 20 | 19 | ||
| 21 | try expect(vpos[1] == 0.0); | 20 | try expect(vpos[1] == 0.0); |
| 22 | vpos = @Vector(2, f32){ 0.0, 1.0 }; | 21 | vpos = @Vector(2, f32){ 0.0, 1.0 }; |
test/behavior/inline_switch.zig+1-1| ... | @@ -81,7 +81,7 @@ test "inline else bool" { | ... | @@ -81,7 +81,7 @@ test "inline else bool" { |
| 81 | 81 | ||
| 82 | test "inline else error" { | 82 | test "inline else error" { |
| 83 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 83 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 84 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 84 | |
| 85 | const Err = error{ a, b, c }; | 85 | const Err = error{ a, b, c }; |
| 86 | var a = Err.a; | 86 | var a = Err.a; |
| 87 | _ = &a; | 87 | _ = &a; |
test/behavior/math.zig-1| ... | @@ -1389,7 +1389,6 @@ fn testOr(comptime T: type, a: T, b: T, expected: T) !void { | ... | @@ -1389,7 +1389,6 @@ fn testOr(comptime T: type, a: T, b: T, expected: T) !void { |
| 1389 | test "or > 128 bits" { | 1389 | test "or > 128 bits" { |
| 1390 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 1390 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 1391 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 1391 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 1392 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 1393 | 1392 | ||
| 1394 | try testOr(u140, 0, 1 << 139, 1 << 139); | 1393 | try testOr(u140, 0, 1 << 139, 1 << 139); |
| 1395 | try testOr(u140, (1 << 70) | 0xa, (1 << 69) | 0x5, (1 << 70) | (1 << 69) | 0xf); | 1394 | try testOr(u140, (1 << 70) | 0xa, (1 << 69) | 0x5, (1 << 70) | (1 << 69) | 0xf); |
test/behavior/muladd.zig-1| ... | @@ -101,7 +101,6 @@ test "vector f16" { | ... | @@ -101,7 +101,6 @@ test "vector f16" { |
| 101 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 101 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 102 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 102 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 103 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 103 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 104 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 105 | 104 | ||
| 106 | try comptime vector16(); | 105 | try comptime vector16(); |
| 107 | try vector16(); | 106 | try vector16(); |
test/behavior/optional.zig-1| ... | @@ -426,7 +426,6 @@ test "optional pointer to zero bit optional payload" { | ... | @@ -426,7 +426,6 @@ test "optional pointer to zero bit optional payload" { |
| 426 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 426 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 427 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 427 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 428 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 428 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 429 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 430 | 429 | ||
| 431 | const B = struct { | 430 | const B = struct { |
| 432 | fn foo(_: *@This()) void {} | 431 | fn foo(_: *@This()) void {} |
test/behavior/slice.zig-3| ... | @@ -787,8 +787,6 @@ test "slice bounds in comptime concatenation" { | ... | @@ -787,8 +787,6 @@ test "slice bounds in comptime concatenation" { |
| 787 | } | 787 | } |
| 788 | 788 | ||
| 789 | test "slice sentinel access at comptime" { | 789 | test "slice sentinel access at comptime" { |
| 790 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 791 | |||
| 792 | { | 790 | { |
| 793 | const str0 = &[_:0]u8{ '1', '2', '3' }; | 791 | const str0 = &[_:0]u8{ '1', '2', '3' }; |
| 794 | const slice0: [:0]const u8 = str0; | 792 | const slice0: [:0]const u8 = str0; |
| ... | @@ -809,7 +807,6 @@ test "slice sentinel access at comptime" { | ... | @@ -809,7 +807,6 @@ test "slice sentinel access at comptime" { |
| 809 | test "slicing array with sentinel as end index" { | 807 | test "slicing array with sentinel as end index" { |
| 810 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 808 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 811 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 809 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 812 | |||
| 813 | const S = struct { | 810 | const S = struct { |
| 814 | fn do() !void { | 811 | fn do() !void { |
| 815 | var array = [_:0]u8{ 1, 2, 3, 4 }; | 812 | var array = [_:0]u8{ 1, 2, 3, 4 }; |
test/behavior/struct.zig-1| ... | @@ -567,7 +567,6 @@ test "bit field access" { | ... | @@ -567,7 +567,6 @@ test "bit field access" { |
| 567 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 567 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 568 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 568 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 569 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 569 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 570 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 571 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; // TODO | 570 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; // TODO |
| 572 | 571 | ||
| 573 | var data = bit_field_1; | 572 | var data = bit_field_1; |
test/behavior/switch.zig+2-1| ... | @@ -314,7 +314,6 @@ fn testSwitchEnumPtrCapture() !void { | ... | @@ -314,7 +314,6 @@ fn testSwitchEnumPtrCapture() !void { |
| 314 | 314 | ||
| 315 | test "switch handles all cases of number" { | 315 | test "switch handles all cases of number" { |
| 316 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 316 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 317 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 318 | 317 | ||
| 319 | try testSwitchHandleAllCases(); | 318 | try testSwitchHandleAllCases(); |
| 320 | try comptime testSwitchHandleAllCases(); | 319 | try comptime testSwitchHandleAllCases(); |
| ... | @@ -1576,6 +1575,8 @@ test "repeated switch analysis overrides previous analysis results" { | ... | @@ -1576,6 +1575,8 @@ test "repeated switch analysis overrides previous analysis results" { |
| 1576 | } | 1575 | } |
| 1577 | 1576 | ||
| 1578 | test "union field pointer capture preserves alignment in inline prong" { | 1577 | test "union field pointer capture preserves alignment in inline prong" { |
| 1578 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 1579 | |||
| 1579 | const U = union(enum) { | 1580 | const U = union(enum) { |
| 1580 | a: u32, | 1581 | a: u32, |
| 1581 | b: u32, | 1582 | b: u32, |
test/behavior/tuple.zig-1| ... | @@ -242,7 +242,6 @@ test "tuple in tuple passed to generic function" { | ... | @@ -242,7 +242,6 @@ test "tuple in tuple passed to generic function" { |
| 242 | test "coerce tuple to tuple" { | 242 | test "coerce tuple to tuple" { |
| 243 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 243 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 244 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 244 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 245 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 246 | 245 | ||
| 247 | const T = @Tuple(&.{u8}); | 246 | const T = @Tuple(&.{u8}); |
| 248 | const S = struct { | 247 | const S = struct { |
test/behavior/vector.zig-1| ... | @@ -414,7 +414,6 @@ test "vector @splat" { | ... | @@ -414,7 +414,6 @@ test "vector @splat" { |
| 414 | } | 414 | } |
| 415 | 415 | ||
| 416 | test "load vector elements via comptime index" { | 416 | test "load vector elements via comptime index" { |
| 417 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | ||
| 418 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 417 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 419 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 418 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 420 | 419 |