Skip to content

Commit f2bb6c4

Browse files
authored
[NFC][HLSL] Fix broken test (#83062)
Noticed while implementing #82536 that this test was also missing the call the FileCheck.
1 parent 5ec535b commit f2bb6c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: clang/test/CodeGenHLSL/semantics/GroupIndex-codegen.hlsl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -emit-llvm -disable-llvm-passes -o - -hlsl-entry main %s
1+
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -emit-llvm -disable-llvm-passes -o - -hlsl-entry main %s | FileCheck %s
22

33
[numthreads(1,1,1)]
44
void main(unsigned GI : SV_GroupIndex) {
@@ -10,7 +10,7 @@ void main(unsigned GI : SV_GroupIndex) {
1010
// semantic parameters and provides the expected void(void) signature that
1111
// drivers expect for entry points.
1212

13-
//CHECK: define void @main() #[[ENTRY_ATTR:#]]{
13+
//CHECK: define void @main() #[[#ENTRY_ATTR:]] {
1414
//CHECK-NEXT: entry:
1515
//CHECK-NEXT: %0 = call i32 @llvm.dx.flattened.thread.id.in.group()
1616
//CHECK-NEXT: call void @"?main@@YAXI@Z"(i32 %0)
@@ -19,4 +19,4 @@ void main(unsigned GI : SV_GroupIndex) {
1919

2020
// Verify that the entry had the expected dx.shader attribute
2121

22-
//CHECK: attributes #[[ENTRY_ATTR]] = { {{.*}}"dx.shader"="compute"{{.*}} }
22+
//CHECK: attributes #[[#ENTRY_ATTR]] = { {{.*}}"hlsl.shader"="compute"{{.*}} }

0 commit comments

Comments
 (0)