summaryrefslogtreecommitdiffstats
path: root/tests/spirv/subgroup-size-2.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2025-07-01 19:09:29 -0700
committerGitHub <noreply@github.com>2025-07-02 02:09:29 +0000
commitc701ec00ccce6dfa8094d6550ce2db929fc8cefe (patch)
tree4f729e8fa5700b2d6d7d99f34514682e3ad351f8 /tests/spirv/subgroup-size-2.slang
parent83c72fd8772d312233f4e3ccd4154b81030d4795 (diff)
Defer immutable buffer loads when emitting spirv. (#7579)
* Defer immutable buffer loads when emitting spirv. * Fix. * Fix. * Fix. * Fix tests. * Fix test.
Diffstat (limited to 'tests/spirv/subgroup-size-2.slang')
-rw-r--r--tests/spirv/subgroup-size-2.slang6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/spirv/subgroup-size-2.slang b/tests/spirv/subgroup-size-2.slang
index 500bd63c8..f7376f584 100644
--- a/tests/spirv/subgroup-size-2.slang
+++ b/tests/spirv/subgroup-size-2.slang
@@ -15,12 +15,12 @@ uint3 f() { return WorkgroupSize(); }
void compute1()
{
// CHECK_EXPERIMENTAL-DAG: %[[VAR:[A-Za-z0-9_]+]] = OpTypePointer Function %v3int
- // CHECK_EXPERIMENTAL: OpAccessChain %[[VAR]]
+ // CHECK_EXPERIMENTAL: Op{{.*}}AccessChain %[[VAR]]
//
// CHECK_EXPERIMENTAL-DAG: %[[CALL_RS:[A-Za-z0-9_]+]] = OpFunctionCall %v3uint %f
// CHECK_EXPERIMENTAL: OpCompositeExtract %uint %[[CALL_RS]] 0
//
- // CHECK_EXPERIMENTAL-DAG: %[[PTR:[A-Za-z0-9_]+]] = OpAccessChain %_ptr_StorageBuffer_int %outputBuffer %int_0 %int_1
+ // CHECK_EXPERIMENTAL-DAG: %[[PTR:[A-Za-z0-9_]+]] = Op{{.*}}AccessChain %_ptr_StorageBuffer_int %outputBuffer %int_0 %int_1
// CHECK_EXPERIMENTAL: OpStore %[[PTR]] %int_2
// CHECK-DAG: %[[VAR:[A-Za-z0-9_]+]] = OpVariable %_ptr_Private_v3int Private
@@ -29,7 +29,7 @@ void compute1()
// CHECK-DAG: %[[CALL_RS:[A-Za-z0-9_]+]] = OpFunctionCall %v3uint %f
// CHECK: OpCompositeExtract %uint %[[CALL_RS]] 0
//
- // CHECK-DAG: %[[PTR:[A-Za-z0-9_]+]] = OpAccessChain %_ptr_StorageBuffer_int %outputBuffer %int_0 %int_1
+ // CHECK-DAG: %[[PTR:[A-Za-z0-9_]+]] = Op{{.*}}AccessChain %_ptr_StorageBuffer_int %outputBuffer %int_0 %int_1
// CHECK: OpStore %[[PTR]] %int_2
const int x = f().x;