| 1 |
; RUN: llc -O0 -verify-machineinstrs -mtriple=spirv-vulkan-library %s -o - | FileCheck %s |
| 2 |
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-vulkan-library %s -o - -filetype=obj | spirv-val %} |
| 3 |
|
| 4 |
; CHECK-DAG: [[Float:%[0-9]+]] = OpTypeFloat 32 |
| 5 |
; CHECK-DAG: [[Void:%[0-9]+]] = OpTypeVoid |
| 6 |
; CHECK-DAG: [[ImageType:%[0-9]+]] = OpTypeImage [[Float]] Buffer 2 0 0 1 R32i {{$}} |
| 7 |
; CHECK-DAG: [[ImageFuncType:%[0-9]+]] = OpTypeFunction [[Void]] [[ImageType]] |
| 8 |
; CHECK-DAG: [[SampledImageType:%[0-9]+]] = OpTypeSampledImage [[ImageType]] |
| 9 |
; CHECK-DAG: [[SampledImageFuncType:%[0-9]+]] = OpTypeFunction [[Void]] [[SampledImageType]] |
| 10 |
|
| 11 |
; CHECK: {{%[0-9]+}} = OpFunction [[Void]] DontInline [[ImageFuncType]] |
| 12 |
define void @ImageWithNoAccessQualifier(target("spirv.Image", float, 5, 2, 0, 0, 1, 24) %img) #0 { |
| 13 |
ret void |
| 14 |
} |
| 15 |
|
| 16 |
; CHECK: {{%[0-9]+}} = OpFunction [[Void]] DontInline [[SampledImageFuncType]] |
| 17 |
define void @SampledImageWithNoAccessQualifier(target("spirv.SampledImage", float, 5, 2, 0, 0, 1, 24) %img) #0 { |
| 18 |
ret void |
| 19 |
} |
| 20 |
|
| 21 |
attributes #0 = { convergent noinline norecurse "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" } |