Skip to content

Commit 98a5ad9

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

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed
Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1-
; RUN: llc -O0 -verify-machineinstrs -mtriple=spirv1.6-unknown-vulkan1.3-compute --spirv-ext=+SPV_KHR_maximal_reconvergence %s -o - | FileCheck %s
1+
; RUN: llc -O0 -verify-machineinstrs -mtriple=spirv1.6-unknown-vulkan1.3-compute --spirv-ext=+SPV_KHR_maximal_reconvergence %s -o - | FileCheck %s --check-prefix=CHECK-EXTENSION
22
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv1.6-unknown-vulkan1.3-compute --spirv-ext=+SPV_KHR_maximal_reconvergence %s -o - -filetype=obj | spirv-val %}
33

4-
; CHECK: OpCapability Shader
5-
; CHECK: OpExtension "SPV_KHR_maximal_reconvergence"
6-
; CHECK: OpExecutionMode {{.*}} MaximallyReconvergesKHR
4+
; CHECK-EXTENSION: OpCapability Shader
5+
; CHECK-EXTENSION: OpExtension "SPV_KHR_maximal_reconvergence"
6+
; CHECK-EXTENSION: OpExecutionMode {{.*}} MaximallyReconvergesKHR
77
define void @main() local_unnamed_addr #0 {
88
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-EXTENSION-NOT: OpExtension "SPV_KHR_maximal_reconvergence"
13+
; CHECK-EXTENSION-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)