Skip to content

Commit 17cbfc8

Browse files
committed
Fix up tests based on code review.
1 parent d4f7f94 commit 17cbfc8

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

llvm/test/CodeGen/SPIRV/ShaderBufferImage.ll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
; CHECK-NOT: OpCapability ImageBasic
88
; CHECK-NOT: OpCapability ImageReadWrite
99

10-
; CHECK: [[Float:%[0-9]+]] = OpTypeFloat 32
11-
; CHECK: [[Void:%[0-9]+]] = OpTypeVoid
12-
; CHECK: [[ImageType:%[0-9]+]] = OpTypeImage [[Float]] Buffer 2 0 0 2 R32i {{$}}
13-
; CHECK: [[ImageFuncType:%[0-9]+]] = OpTypeFunction [[Void]] [[ImageType]]
10+
; CHECK-DAG: [[Float:%[0-9]+]] = OpTypeFloat 32
11+
; CHECK-DAG: [[Void:%[0-9]+]] = OpTypeVoid
12+
; CHECK-DAG: [[ImageType:%[0-9]+]] = OpTypeImage [[Float]] Buffer 2 0 0 2 R32i {{$}}
13+
; CHECK-DAG: [[ImageFuncType:%[0-9]+]] = OpTypeFunction [[Void]] [[ImageType]]
1414

15-
; CHECK: {{%[0-9]+}} = OpFunction [[Void]] DontInline [[ImageFuncType]] ; -- Begin function ImageWithNoAccessQualifier
15+
; CHECK: {{%[0-9]+}} = OpFunction [[Void]] DontInline [[ImageFuncType]]
1616
define void @ImageWithNoAccessQualifier(target("spirv.Image", float, 5, 2, 0, 0, 2, 24) %img) #0 {
1717
ret void
1818
}

llvm/test/CodeGen/SPIRV/ShaderImage.ll

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
; RUN: llc -verify-machineinstrs -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

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]]
1010

11-
; CHECK: {{%[0-9]+}} = OpFunction [[Void]] DontInline [[ImageFuncType]] ; -- Begin function ImageWithNoAccessQualifier
11+
; CHECK: {{%[0-9]+}} = OpFunction [[Void]] DontInline [[ImageFuncType]]
1212
define void @ImageWithNoAccessQualifier(target("spirv.Image", float, 5, 2, 0, 0, 1, 24) %img) #0 {
1313
ret void
1414
}
1515

16-
; CHECK: {{%[0-9]+}} = OpFunction [[Void]] DontInline [[SampledImageFuncType]] ; -- Begin function SampledImageWithNoAccessQualifier
16+
; CHECK: {{%[0-9]+}} = OpFunction [[Void]] DontInline [[SampledImageFuncType]]
1717
define void @SampledImageWithNoAccessQualifier(target("spirv.SampledImage", float, 5, 2, 0, 0, 1, 24) %img) #0 {
1818
ret void
1919
}

0 commit comments

Comments
 (0)