summaryrefslogtreecommitdiff
path: root/tests/spirv/spv-version.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-06-01 19:26:14 -0700
committerGitHub <noreply@github.com>2024-06-01 19:26:14 -0700
commitc5a453e56985022deb820cbbb2ff5cd6a8347e34 (patch)
tree019c81e8bfcc099f2ff17c1a58f625cf6a527d47 /tests/spirv/spv-version.slang
parent5799281bda2f9a174b825de4058c5e8c9aa5b27f (diff)
Support different SPIRV versions. (#4254)
Diffstat (limited to 'tests/spirv/spv-version.slang')
-rw-r--r--tests/spirv/spv-version.slang18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/spirv/spv-version.slang b/tests/spirv/spv-version.slang
new file mode 100644
index 000000000..e9cc81929
--- /dev/null
+++ b/tests/spirv/spv-version.slang
@@ -0,0 +1,18 @@
+//TEST:SIMPLE(filecheck=SPIRV15): -target spirv
+
+//TEST:SIMPLE(filecheck=SPIRV14): -target spirv -profile spirv_1_4
+
+// Test that we can use -profile to control the resulting spirv version.
+
+// By default, we emit spirv 1.5
+
+// SPIRV15: Version: 1.5
+
+// If the user specified an explicit spirv version, we will use it.
+// SPIRV14: Version: 1.4
+
+[numthreads(1,1,1)]
+void main()
+{
+
+} \ No newline at end of file