summaryrefslogtreecommitdiff
path: root/tests/spirv/address-space-specialize.slang
diff options
context:
space:
mode:
authorArielG-NV <159081215+ArielG-NV@users.noreply.github.com>2024-07-30 23:04:08 -0400
committerGitHub <noreply@github.com>2024-07-30 20:04:08 -0700
commit04e7327a2067c82db3eaef51955f211e148ac933 (patch)
tree8a8320db5165e280efb2fdb9aa4ecd078d380c72 /tests/spirv/address-space-specialize.slang
parentfef0a87ddee9c0f252a6625395b684b1cb5d85e0 (diff)
Move SPIRV global variables into a context variable (#4741)
Diffstat (limited to 'tests/spirv/address-space-specialize.slang')
-rw-r--r--tests/spirv/address-space-specialize.slang7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/spirv/address-space-specialize.slang b/tests/spirv/address-space-specialize.slang
index e2b48489a..f8201838b 100644
--- a/tests/spirv/address-space-specialize.slang
+++ b/tests/spirv/address-space-specialize.slang
@@ -1,3 +1,4 @@
+//TEST:SIMPLE(filecheck=CHECK_EXPERIMENTAL):-target spirv -entry main -stage compute -emit-spirv-directly -O0 -enable-experimental-passes
//TEST:SIMPLE(filecheck=CHECK):-target spirv -entry main -stage compute -emit-spirv-directly -O0
// Test that we can pass arguments in different address space to an `inout` parameter, and have
@@ -7,6 +8,12 @@
static int gArray0[2];
groupshared int gArray1[2];
+// Note: static globals are inside a context variable
+// CHECK_EXPERIMENTAL: OpTypeArray %int %int_2
+// CHECK_EXPERIMENTAL: OpVariable %_ptr_Function__arr_int_int_2 Function
+// CHECK_EXPERIMENTAL: %array_0 = OpFunctionParameter %_ptr_Workgroup__arr_int_int_2
+
+
// CHECK: %array = OpFunctionParameter %_ptr_Private__arr_int_int_2
// CHECK: %array_0 = OpFunctionParameter %_ptr_Workgroup__arr_int_int_2