Skip to content

Commit cc7bc9e

Browse files
committed
Add a negative test case
1 parent 6c87062 commit cc7bc9e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

llvm/test/CodeGen/SPIRV/extensions/SPV_KHR_maximal_reconvergence/enable-maximal-reconvergence.ll

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,12 @@ entry:
99
ret void
1010
}
1111

12-
attributes #0 = { mustprogress nofree noinline norecurse nosync nounwind willreturn memory(none) "enable-maximal-reconvergence"="true" "frame-pointer"="all" "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
12+
; CHECK-NOT: OpExtension "SPV_KHR_maximal_reconvergence"
13+
; CHECK-NOT: OpExecutionMode {{.*}} MaximallyReconvergesKHR
14+
define void @negative() local_unnamed_addr #1 {
15+
entry:
16+
ret void
17+
}
18+
19+
attributes #0 = { "enable-maximal-reconvergence"="true" "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }
20+
attributes #1 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }

0 commit comments

Comments
 (0)