diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-23 19:05:23 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-23 19:05:23 -0800 |
| commit | a1827ee5e9b8088b23db3fa688b7bd62b7bbe9ac (patch) | |
| tree | eab251421b70f2ee64a0e420e270ed6295bd2987 /tests/spirv/unknown-opcode.slang | |
| parent | 401d8cdb12ae69aeb216c80c9bb90240d8359649 (diff) | |
SPIRV Fixes. (#3622)
* Use SpvSourceLanguageSlang enum.
* Fix spirv entrypoint interface.
* Cleanup.
* Add error on unknown spirv opcode.
* Fix CI.
* Fix.
Diffstat (limited to 'tests/spirv/unknown-opcode.slang')
| -rw-r--r-- | tests/spirv/unknown-opcode.slang | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/spirv/unknown-opcode.slang b/tests/spirv/unknown-opcode.slang new file mode 100644 index 000000000..4358a5cd4 --- /dev/null +++ b/tests/spirv/unknown-opcode.slang @@ -0,0 +1,16 @@ + +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -stage compute -entry main -target spirv -emit-spirv-directly + +void main() +{ + spirv_asm + { + // CHECK: ([[#@LINE+1]]): error + unknownOpCode + }; + spirv_asm + { + // CHECK-NOT: ([[#@LINE+1]]): error + 5 + }; +} |
