Skip to content

Commit 24e36e8

Browse files
[SYCL] Make device_has test correctly handle changed metadata (#8161)
The sycl/test/check_device_code/device_has.cpp test currently enforces strict ordering of the expected metadata in the resulting IR, but there is no guarantee about this ordering and future changes could make some of the metadata appear earlier, e.g. through consolidation with other metadata nodes. This test should not care about the order however, so this commit removes the ordering requirements. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 7f24cac commit 24e36e8

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

sycl/test/check_device_code/device_has.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ void foo() {
5656
});
5757
}
5858

59-
// CHECK: [[ASPECTS1]] = !{i32 1}
60-
// CHECK: [[SRCLOC1]] = !{i32 {{[0-9]+}}}
61-
// CHECK: [[EMPTYASPECTS]] = !{}
62-
// CHECK: [[SRCLOC2]] = !{i32 {{[0-9]+}}}
63-
// CHECK: [[ASPECTS2]] = !{i32 5, i32 2}
64-
// CHECK: [[SRCLOC3]] = !{i32 {{[0-9]+}}}
65-
// CHECK: [[SRCLOC4]] = !{i32 {{[0-9]+}}}
66-
// CHECK: [[ASPECTS3]] = !{i32 0}
67-
// CHECK: [[SRCLOC5]] = !{i32 {{[0-9]+}}}
68-
// CHECK: [[SRCLOC6]] = !{i32 {{[0-9]+}}}
69-
// CHECK: [[SRCLOC7]] = !{i32 {{[0-9]+}}}
70-
// CHECK: [[ASPECTS4]] = !{i32 2}
71-
// CHECK: [[SRCLOC8]] = !{i32 {{[0-9]+}}}
59+
// CHECK-DAG: [[ASPECTS1]] = !{i32 1}
60+
// CHECK-DAG: [[SRCLOC1]] = !{i32 {{[0-9]+}}}
61+
// CHECK-DAG: [[EMPTYASPECTS]] = !{}
62+
// CHECK-DAG: [[SRCLOC2]] = !{i32 {{[0-9]+}}}
63+
// CHECK-DAG: [[ASPECTS2]] = !{i32 5, i32 2}
64+
// CHECK-DAG: [[SRCLOC3]] = !{i32 {{[0-9]+}}}
65+
// CHECK-DAG: [[SRCLOC4]] = !{i32 {{[0-9]+}}}
66+
// CHECK-DAG: [[ASPECTS3]] = !{i32 0}
67+
// CHECK-DAG: [[SRCLOC5]] = !{i32 {{[0-9]+}}}
68+
// CHECK-DAG: [[SRCLOC6]] = !{i32 {{[0-9]+}}}
69+
// CHECK-DAG: [[SRCLOC7]] = !{i32 {{[0-9]+}}}
70+
// CHECK-DAG: [[ASPECTS4]] = !{i32 2}
71+
// CHECK-DAG: [[SRCLOC8]] = !{i32 {{[0-9]+}}}

0 commit comments

Comments
 (0)