|
1 | 1 | ; RUN: llc -verify-machineinstrs -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 | | -; CHECK: [[Float:%[0-9]+]] = OpTypeFloat 32 |
5 | | -; CHECK: [[Void:%[0-9]+]] = OpTypeVoid |
6 | | -; CHECK: [[ImageType:%[0-9]+]] = OpTypeImage [[Float]] Buffer 2 0 0 1 R32i {{$}} |
7 | | -; CHECK: [[ImageFuncType:%[0-9]+]] = OpTypeFunction [[Void]] [[ImageType]] |
8 | | -; CHECK: [[SampledImageType:%[0-9]+]] = OpTypeSampledImage [[ImageType]] |
9 | | -; CHECK: [[SampledImageFuncType:%[0-9]+]] = OpTypeFunction [[Void]] [[SampledImageType]] |
| 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 | 10 |
|
11 | | -; CHECK: {{%[0-9]+}} = OpFunction [[Void]] DontInline [[ImageFuncType]] ; -- Begin function ImageWithNoAccessQualifier |
| 11 | +; CHECK: {{%[0-9]+}} = OpFunction [[Void]] DontInline [[ImageFuncType]] |
12 | 12 | define void @ImageWithNoAccessQualifier(target("spirv.Image", float, 5, 2, 0, 0, 1, 24) %img) #0 { |
13 | 13 | ret void |
14 | 14 | } |
15 | 15 |
|
16 | | -; CHECK: {{%[0-9]+}} = OpFunction [[Void]] DontInline [[SampledImageFuncType]] ; -- Begin function SampledImageWithNoAccessQualifier |
| 16 | +; CHECK: {{%[0-9]+}} = OpFunction [[Void]] DontInline [[SampledImageFuncType]] |
17 | 17 | define void @SampledImageWithNoAccessQualifier(target("spirv.SampledImage", float, 5, 2, 0, 0, 1, 24) %img) #0 { |
18 | 18 | ret void |
19 | 19 | } |
|
0 commit comments