Skip to content

Commit be709fd

Browse files
fix the test case
1 parent 18af7fb commit be709fd

File tree

1 file changed

+8
-7
lines changed
  • llvm/test/CodeGen/SPIRV/inline

1 file changed

+8
-7
lines changed

llvm/test/CodeGen/SPIRV/inline/type.ll

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,26 @@
22
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %}
33
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - | spirv-as - -o - | spirv-val %}
44

5-
; CHECK: [[uint32_t:%[0-9]+]] = OpTypeInt 32 0
5+
; CHECK-DAG: [[float_t:%[0-9]+]] = OpTypeFloat 32
6+
; CHECK-DAG: [[uint32_t:%[0-9]+]] = OpTypeInt 32 0
67

7-
; CHECK: [[image_t:%[0-9]+]] = OpTypeImage %3 2D 2 0 0 1 Unknown
8+
; CHECK-DAG: [[image_t:%[0-9]+]] = OpTypeImage [[float_t]] 2D 2 0 0 1 Unknown
89
%type_2d_image = type target("spirv.Image", float, 1, 2, 0, 0, 1, 0)
910

1011
%literal_true = type target("spirv.Literal", 1)
1112
%literal_32 = type target("spirv.Literal", 32)
1213

13-
; CHECK: [[uint32_4:%[0-9]+]] = OpConstant [[uint32_t]] 4
14+
; CHECK-DAG: [[uint32_4:%[0-9]+]] = OpConstant [[uint32_t]] 4
1415
%integral_constant_4 = type target("spirv.IntegralConstant", i32, 4)
1516

16-
; CHECK: OpUnknown(28, 4) [[array_t:%[0-9]+]] [[image_t]] [[uint32_4]]
17+
; CHECK-DAG: OpUnknown(28, 4) [[array_t:%[0-9]+]] [[image_t]] [[uint32_4]]
1718
%ArrayTex2D = type target("spirv.Type", %type_2d_image, %integral_constant_4, 28, 0, 0)
1819

19-
; CHECK: OpUnknown(21, 4) [[int_t:%[0-9]+]] 32 1
20+
; CHECK-DAG: OpUnknown(21, 4) [[int_t:%[0-9]+]] 32 1
2021
%int_t = type target("spirv.Type", %literal_32, %literal_true, 21, 0, 0)
2122

22-
; CHECK: [[getTexArray_t:%[0-9]+]] = OpTypeFunction [[array_t]]
23-
; CHECK: [[getInt_t:%[0-9]+]] = OpTypeFunction [[int_t]]
23+
; CHECK-DAG: [[getTexArray_t:%[0-9]+]] = OpTypeFunction [[array_t]]
24+
; CHECK-DAG: [[getInt_t:%[0-9]+]] = OpTypeFunction [[int_t]]
2425

2526
; CHECK: [[getTexArray:%[0-9]+]] = OpFunction [[array_t]] None [[getTexArray_t]]
2627
declare %ArrayTex2D @getTexArray()

0 commit comments

Comments
 (0)