spirv: ptr_sub

Implments the ptr_sub air tag. The code is unified with that of ptr_add.
This commit is contained in:
Robin Voetter
2023-05-19 13:04:53 +02:00
parent 091595ac37
commit 77b8bf2b82
2 changed files with 34 additions and 9 deletions

View File

@@ -84,7 +84,6 @@ test "assigning integer to C pointer" {
test "C pointer comparison and arithmetic" {
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
const S = struct {
fn doTheTest() !void {