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
22; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-vulkan-library %s -o - -filetype=obj | spirv-val %}
33
44; CHECK-DAG: OpDecorate [[IntBufferVar:%[0-9]+]] DescriptorSet 16
1818; CHECK: {{%[0-9]+}} = OpFunction {{%[0-9]+}} DontInline {{%[0-9]+}}
1919; CHECK-NEXT: OpLabel
2020define void @RWBufferLoad () #0 {
21- ; CHECK-NEXT : [[buffer:%[0-9]+]] = OpLoad [[RWBufferTypeInt]] [[IntBufferVar]]
21+ ; CHECK: [[buffer:%[0-9]+]] = OpLoad [[RWBufferTypeInt]] [[IntBufferVar]]
2222 %buffer0 = call target ("spirv.Image" , i32 , 5 , 2 , 0 , 0 , 2 , 24 )
2323 @llvm.spv.handle.fromBinding.tspirv.Image_f32_5_2_0_0_2_24 (
2424 i32 16 , i32 7 , i32 1 , i32 0 , i1 false )
2525
2626; 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]]
2828 %buffer1 = call target ("spirv.Image" , i32 , 5 , 2 , 0 , 0 , 2 , 24 )
2929 @llvm.spv.handle.fromBinding.tspirv.Image_f32_5_2_0_0_2_24 (
3030 i32 16 , i32 7 , i32 1 , i32 0 , i1 false )
@@ -36,7 +36,7 @@ define void @RWBufferLoad() #0 {
3636define void @UseDifferentGlobalVar () #0 {
3737; Make sure we use a different variable from the first function. They have
3838; different types.
39- ; CHECK-NEXT : [[buffer:%[0-9]+]] = OpLoad [[RWBufferTypeFloat]] [[FloatBufferVar]]
39+ ; CHECK: [[buffer:%[0-9]+]] = OpLoad [[RWBufferTypeFloat]] [[FloatBufferVar]]
4040 %buffer0 = call target ("spirv.Image" , float , 5 , 2 , 0 , 0 , 2 , 3 )
4141 @llvm.spv.handle.fromBinding.tspirv.Image_f32_5_2_0_0_2_3 (
4242 i32 16 , i32 7 , i32 1 , i32 0 , i1 false )
@@ -48,7 +48,7 @@ define void @UseDifferentGlobalVar() #0 {
4848define void @ReuseGlobalVarFromFirstFunction () #0 {
4949; Make sure we use the same variable as the first function. They should be the
5050; 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]]
5252 %buffer1 = call target ("spirv.Image" , i32 , 5 , 2 , 0 , 0 , 2 , 24 )
5353 @llvm.spv.handle.fromBinding.tspirv.Image_f32_5_2_0_0_2_24 (
5454 i32 16 , i32 7 , i32 1 , i32 0 , i1 false )
0 commit comments