|
2 | 2 | ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %} |
3 | 3 | ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - | spirv-as - -o - | spirv-val %} |
4 | 4 |
|
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 |
6 | 7 |
|
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 |
8 | 9 | %type_2d_image = type target("spirv.Image", float, 1, 2, 0, 0, 1, 0) |
9 | 10 |
|
10 | 11 | %literal_true = type target("spirv.Literal", 1) |
11 | 12 | %literal_32 = type target("spirv.Literal", 32) |
12 | 13 |
|
13 | | -; CHECK: [[uint32_4:%[0-9]+]] = OpConstant [[uint32_t]] 4 |
| 14 | +; CHECK-DAG: [[uint32_4:%[0-9]+]] = OpConstant [[uint32_t]] 4 |
14 | 15 | %integral_constant_4 = type target("spirv.IntegralConstant", i32, 4) |
15 | 16 |
|
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]] |
17 | 18 | %ArrayTex2D = type target("spirv.Type", %type_2d_image, %integral_constant_4, 28, 0, 0) |
18 | 19 |
|
19 | | -; CHECK: OpUnknown(21, 4) [[int_t:%[0-9]+]] 32 1 |
| 20 | +; CHECK-DAG: OpUnknown(21, 4) [[int_t:%[0-9]+]] 32 1 |
20 | 21 | %int_t = type target("spirv.Type", %literal_32, %literal_true, 21, 0, 0) |
21 | 22 |
|
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]] |
24 | 25 |
|
25 | 26 | ; CHECK: [[getTexArray:%[0-9]+]] = OpFunction [[array_t]] None [[getTexArray_t]] |
26 | 27 | declare %ArrayTex2D @getTexArray() |
|
0 commit comments