Skip to content

Commit f0d05cd

Browse files
committed
Update global_array.hlsl SPIR-V convergence test to use custom struct
1 parent 8bc614a commit f0d05cd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

clang/test/CodeGenHLSL/convergence/global_array.hlsl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@
66

77
// CHECK: [[loop_entry]]:
88
// CHECK: [[loop_token:%.*]] = call token @llvm.experimental.convergence.loop() [ "convergencectrl"(token [[entry_token]]) ]
9-
// CHECK: call void {{.*}} [ "convergencectrl"(token [[loop_token]]) ]
9+
// CHECK: call spir_func void {{.*}} [ "convergencectrl"(token [[loop_token]]) ]
1010
// CHECK: br i1 {{%.*}} label {{%.*}} label %[[loop_entry]]
11-
RWBuffer<float> e[2];
11+
12+
struct S {
13+
int i;
14+
S() { i = 10; }
15+
};
16+
17+
static S s[2];
1218

1319
[numthreads(4,1,1)]
1420
void main() {

0 commit comments

Comments
 (0)