32
32
; CHECK-DAG: OpDecorate [[g]] Binding 0
33
33
; CHECK-DAG: OpDecorate [[h]] DescriptorSet 10
34
34
; CHECK-DAG: OpDecorate [[h]] Binding 3
35
+ ; CHECK-NOT: OpDecorate [[h]] Binding 4
35
36
; CHECK-DAG: OpDecorate [[i]] DescriptorSet 10
36
37
; CHECK-DAG: OpDecorate [[i]] Binding 2
37
38
@@ -44,30 +45,34 @@ entry:
44
45
%3 = tail call target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) @llvm.spv.resource.handlefrombinding.tspirv.SignedImage_i32_5_2_0_0_2_0t (i32 0 , i32 2 , i32 1 , i32 0 , ptr nonnull @.str.6 )
45
46
%4 = tail call target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) @llvm.spv.resource.handlefrombinding.tspirv.SignedImage_i32_5_2_0_0_2_0t (i32 10 , i32 1 , i32 1 , i32 0 , ptr nonnull @.str.8 )
46
47
%5 = tail call target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) @llvm.spv.resource.handlefromimplicitbinding.tspirv.SignedImage_i32_5_2_0_0_2_0t (i32 2 , i32 10 , i32 1 , i32 0 , ptr nonnull @.str.10 )
47
- %6 = tail call target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) @llvm.spv.resource.handlefromimplicitbinding.tspirv.SignedImage_i32_5_2_0_0_2_0t (i32 3 , i32 10 , i32 1 , i32 0 , ptr nonnull @.str.12 )
48
- %7 = tail call target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) @llvm.spv.resource.handlefrombinding.tspirv.SignedImage_i32_5_2_0_0_2_0t (i32 10 , i32 2 , i32 1 , i32 0 , ptr nonnull @.str.14 )
49
- %8 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %1 , i32 0 )
50
- %9 = load i32 , ptr addrspace (11 ) %8 , align 4
51
- %10 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %2 , i32 0 )
52
- %11 = load i32 , ptr addrspace (11 ) %10 , align 4
53
- %add.i = add nsw i32 %11 , %9
54
- %12 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %3 , i32 0 )
55
- %13 = load i32 , ptr addrspace (11 ) %12 , align 4
56
- %add4.i = add nsw i32 %add.i , %13
57
- %14 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %4 , i32 0 )
58
- %15 = load i32 , ptr addrspace (11 ) %14 , align 4
59
- %add6.i = add nsw i32 %add4.i , %15
60
- %16 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %5 , i32 0 )
61
- %17 = load i32 , ptr addrspace (11 ) %16 , align 4
62
- %add8.i = add nsw i32 %add6.i , %17
63
- %18 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %6 , i32 0 )
64
- %19 = load i32 , ptr addrspace (11 ) %18 , align 4
65
- %add10.i = add nsw i32 %add8.i , %19
66
- %20 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %7 , i32 0 )
67
- %21 = load i32 , ptr addrspace (11 ) %20 , align 4
68
- %add12.i = add nsw i32 %add10.i , %21
69
- %22 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %0 , i32 0 )
70
- store i32 %add12.i , ptr addrspace (11 ) %22 , align 4
48
+ %6 = tail call target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) @llvm.spv.resource.handlefromimplicitbinding.tspirv.SignedImage_i32_5_2_0_0_2_0t (i32 3 , i32 10 , i32 2 , i32 0 , ptr nonnull @.str.12 )
49
+ %7 = tail call target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) @llvm.spv.resource.handlefromimplicitbinding.tspirv.SignedImage_i32_5_2_0_0_2_0t (i32 3 , i32 10 , i32 2 , i32 1 , ptr nonnull @.str.12 )
50
+ %8 = tail call target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) @llvm.spv.resource.handlefrombinding.tspirv.SignedImage_i32_5_2_0_0_2_0t (i32 10 , i32 2 , i32 1 , i32 0 , ptr nonnull @.str.14 )
51
+ %9 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %1 , i32 0 )
52
+ %10 = load i32 , ptr addrspace (11 ) %9 , align 4
53
+ %11 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %2 , i32 0 )
54
+ %12 = load i32 , ptr addrspace (11 ) %11 , align 4
55
+ %add.i = add nsw i32 %12 , %10
56
+ %13 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %3 , i32 0 )
57
+ %14 = load i32 , ptr addrspace (11 ) %13 , align 4
58
+ %add4.i = add nsw i32 %add.i , %14
59
+ %15 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %4 , i32 0 )
60
+ %16 = load i32 , ptr addrspace (11 ) %15 , align 4
61
+ %add6.i = add nsw i32 %add4.i , %16
62
+ %17 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %5 , i32 0 )
63
+ %18 = load i32 , ptr addrspace (11 ) %17 , align 4
64
+ %add8.i = add nsw i32 %add6.i , %18
65
+ %19 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %6 , i32 0 )
66
+ %20 = load i32 , ptr addrspace (11 ) %19 , align 4
67
+ %add10.i = add nsw i32 %add8.i , %20
68
+ %21 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %7 , i32 0 )
69
+ %22 = load i32 , ptr addrspace (11 ) %21 , align 4
70
+ %add12.i = add nsw i32 %add10.i , %22
71
+ %23 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %8 , i32 0 )
72
+ %24 = load i32 , ptr addrspace (11 ) %23 , align 4
73
+ %add14.i = add nsw i32 %add12.i , %24
74
+ %25 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.SignedImage_i32_5_2_0_0_2_0t (target ("spirv.SignedImage" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) %0 , i32 0 )
75
+ store i32 %add14.i , ptr addrspace (11 ) %25 , align 4
71
76
ret void
72
77
}
73
78
0 commit comments