| author | |
| committer | |
| log | 2fc409a32f18b0c62e3918f0b832ed9e4c8d142d |
| tree | e860ca01ea4e012ae135171521039f52cc5b505f |
| parent | 2a4e06bcb30f71e83b14026bcbade6aac3aece84 |
3 files changed, 7 insertions(+), 1 deletions(-)
src/codegen/spirv.zig+2-1| ... | ... | @@ -2821,6 +2821,7 @@ const NavGen = struct { |
| 2821 | 2821 | /// TODO is to also write out the error as a function call parameter, and to somehow fetch |
| 2822 | 2822 | /// the name of an error in the text executor. |
| 2823 | 2823 | fn generateTestEntryPoint(self: *NavGen, name: []const u8, spv_test_decl_index: SpvModule.Decl.Index) !void { |
| 2824 | const zcu = self.pt.zcu; | |
| 2824 | 2825 | const target = self.spv.target; |
| 2825 | 2826 | |
| 2826 | 2827 | const anyerror_ty_id = try self.resolveType(Type.anyerror, .direct); |
| ... | ... | @@ -2950,7 +2951,7 @@ const NavGen = struct { |
| 2950 | 2951 | .pointer = p_error_id, |
| 2951 | 2952 | .object = error_id, |
| 2952 | 2953 | .memory_access = .{ |
| 2953 | .Aligned = .{ .literal_integer = @sizeOf(u16) }, | |
| 2954 | .Aligned = .{ .literal_integer = @intCast(Type.abiAlignment(.anyerror, zcu).toByteUnits().?) }, | |
| 2954 | 2955 | }, |
| 2955 | 2956 | }); |
| 2956 | 2957 | try section.emit(self.spv.gpa, .OpReturn, {}); |
test/behavior.zig+2| ... | ... | @@ -140,6 +140,8 @@ test { |
| 140 | 140 | |
| 141 | 141 | // This bug only repros in the root file |
| 142 | 142 | test "deference @embedFile() of a file full of zero bytes" { |
| 143 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | |
| 144 | ||
| 143 | 145 | const contents = @embedFile("behavior/zero.bin").*; |
| 144 | 146 | try @import("std").testing.expect(contents.len == 456); |
| 145 | 147 | for (contents) |byte| try @import("std").testing.expect(byte == 0); |
test/behavior/floatop.zig+3| ... | ... | @@ -133,6 +133,7 @@ test "cmp f16" { |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | test "cmp f32" { |
| 136 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | |
| 136 | 137 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 137 | 138 | if (builtin.cpu.arch.isArm() and builtin.target.abi.float() == .soft) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21234 |
| 138 | 139 | if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf and builtin.target.ofmt != .macho) return error.SkipZigTest; |
| ... | ... | @@ -142,6 +143,7 @@ test "cmp f32" { |
| 142 | 143 | } |
| 143 | 144 | |
| 144 | 145 | test "cmp f64" { |
| 146 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | |
| 145 | 147 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 146 | 148 | if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf and builtin.target.ofmt != .macho) return error.SkipZigTest; |
| 147 | 149 | if (builtin.cpu.arch.isArm() and builtin.target.abi.float() == .soft) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21234 |
| ... | ... | @@ -245,6 +247,7 @@ test "vector cmp f16" { |
| 245 | 247 | } |
| 246 | 248 | |
| 247 | 249 | test "vector cmp f32" { |
| 250 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | |
| 248 | 251 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO |
| 249 | 252 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 250 | 253 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |