1
- ; RUN: llc -verify-machineinstrs - O0 -mtriple=spirv-vulkan-library %s -o - | FileCheck %s
1
+ ; RUN: llc -O0 -mtriple=spirv-vulkan-library %s -o - | FileCheck %s
2
2
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-vulkan-library %s -o - -filetype=obj | spirv-val %}
3
3
4
4
; CHECK-DAG: OpDecorate [[IntBufferVar:%[0-9]+]] DescriptorSet 16
18
18
; CHECK: {{%[0-9]+}} = OpFunction {{%[0-9]+}} DontInline {{%[0-9]+}}
19
19
; CHECK-NEXT: OpLabel
20
20
define void @RWBufferLoad () #0 {
21
- ; CHECK-NEXT : [[buffer:%[0-9]+]] = OpLoad [[RWBufferTypeInt]] [[IntBufferVar]]
21
+ ; CHECK: [[buffer:%[0-9]+]] = OpLoad [[RWBufferTypeInt]] [[IntBufferVar]]
22
22
%buffer0 = call target ("spirv.Image" , i32 , 5 , 2 , 0 , 0 , 2 , 24 )
23
23
@llvm.spv.handle.fromBinding.tspirv.Image_f32_5_2_0_0_2_24 (
24
24
i32 16 , i32 7 , i32 1 , i32 0 , i1 false )
25
25
26
26
; Make sure we use the same variable with multiple loads.
27
- ; CHECK-NEXT : [[buffer:%[0-9]+]] = OpLoad [[RWBufferTypeInt]] [[IntBufferVar]]
27
+ ; CHECK: [[buffer:%[0-9]+]] = OpLoad [[RWBufferTypeInt]] [[IntBufferVar]]
28
28
%buffer1 = call target ("spirv.Image" , i32 , 5 , 2 , 0 , 0 , 2 , 24 )
29
29
@llvm.spv.handle.fromBinding.tspirv.Image_f32_5_2_0_0_2_24 (
30
30
i32 16 , i32 7 , i32 1 , i32 0 , i1 false )
@@ -36,7 +36,7 @@ define void @RWBufferLoad() #0 {
36
36
define void @UseDifferentGlobalVar () #0 {
37
37
; Make sure we use a different variable from the first function. They have
38
38
; different types.
39
- ; CHECK-NEXT : [[buffer:%[0-9]+]] = OpLoad [[RWBufferTypeFloat]] [[FloatBufferVar]]
39
+ ; CHECK: [[buffer:%[0-9]+]] = OpLoad [[RWBufferTypeFloat]] [[FloatBufferVar]]
40
40
%buffer0 = call target ("spirv.Image" , float , 5 , 2 , 0 , 0 , 2 , 3 )
41
41
@llvm.spv.handle.fromBinding.tspirv.Image_f32_5_2_0_0_2_3 (
42
42
i32 16 , i32 7 , i32 1 , i32 0 , i1 false )
@@ -48,7 +48,7 @@ define void @UseDifferentGlobalVar() #0 {
48
48
define void @ReuseGlobalVarFromFirstFunction () #0 {
49
49
; Make sure we use the same variable as the first function. They should be the
50
50
; same in case one function calls the other.
51
- ; CHECK-NEXT : [[buffer:%[0-9]+]] = OpLoad [[RWBufferTypeInt]] [[IntBufferVar]]
51
+ ; CHECK: [[buffer:%[0-9]+]] = OpLoad [[RWBufferTypeInt]] [[IntBufferVar]]
52
52
%buffer1 = call target ("spirv.Image" , i32 , 5 , 2 , 0 , 0 , 2 , 24 )
53
53
@llvm.spv.handle.fromBinding.tspirv.Image_f32_5_2_0_0_2_24 (
54
54
i32 16 , i32 7 , i32 1 , i32 0 , i1 false )
0 commit comments