authorgravatar for robin@voetter.nlRobin Voetter <robin@voetter.nl> 2023-05-19 11:28:25+02:00
committergravatar for robin@voetter.nlRobin Voetter <robin@voetter.nl> 2023-05-20 17:30:22+02:00
log091595ac3711fcbc372ffe6d002890f9dd897598
tree027f9c8418e4f881c0b6cfe58bbb6146ecb4e70d
parent37aa343079d32db96be742c9740f343ff8d2839e
signaturelock-open Commit is signed but in an unrecognized format.

spirv: customize module-scope asm test

This test passes just fine, but the provided assembly is not valid for spir-v. This adds a custom assembly test and enables the test for spir-v

1 files changed, 4 insertions(+), 1 deletions(-)

test/behavior/asm.zig+4-1
......@@ -15,6 +15,10 @@ comptime {
1515 \\.type this_is_my_alias, @function;
1616 \\.set this_is_my_alias, derp;
1717 );
18 } else if (builtin.zig_backend == .stage2_spirv64) {
19 asm (
20 \\%a = OpString "hello there"
21 );
1822 }
1923}
2024
......@@ -24,7 +28,6 @@ test "module level assembly" {
2428 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
2529 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
2630 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
27 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
2831
2932 if (builtin.zig_backend == .stage2_c and builtin.os.tag == .windows) return error.SkipZigTest; // MSVC doesn't support inline assembly
3033