Skip to content

Commit

Permalink
[SYCL] Make device_has test correctly handle changed metadata (intel#…
Browse files Browse the repository at this point in the history
…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 <steffen.larsen@intel.com>
  • Loading branch information
steffenlarsen authored Jan 31, 2023
1 parent 7f24cac commit 24e36e8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions sycl/test/check_device_code/device_has.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ void foo() {
});
}

// CHECK: [[ASPECTS1]] = !{i32 1}
// CHECK: [[SRCLOC1]] = !{i32 {{[0-9]+}}}
// CHECK: [[EMPTYASPECTS]] = !{}
// CHECK: [[SRCLOC2]] = !{i32 {{[0-9]+}}}
// CHECK: [[ASPECTS2]] = !{i32 5, i32 2}
// CHECK: [[SRCLOC3]] = !{i32 {{[0-9]+}}}
// CHECK: [[SRCLOC4]] = !{i32 {{[0-9]+}}}
// CHECK: [[ASPECTS3]] = !{i32 0}
// CHECK: [[SRCLOC5]] = !{i32 {{[0-9]+}}}
// CHECK: [[SRCLOC6]] = !{i32 {{[0-9]+}}}
// CHECK: [[SRCLOC7]] = !{i32 {{[0-9]+}}}
// CHECK: [[ASPECTS4]] = !{i32 2}
// CHECK: [[SRCLOC8]] = !{i32 {{[0-9]+}}}
// CHECK-DAG: [[ASPECTS1]] = !{i32 1}
// CHECK-DAG: [[SRCLOC1]] = !{i32 {{[0-9]+}}}
// CHECK-DAG: [[EMPTYASPECTS]] = !{}
// CHECK-DAG: [[SRCLOC2]] = !{i32 {{[0-9]+}}}
// CHECK-DAG: [[ASPECTS2]] = !{i32 5, i32 2}
// CHECK-DAG: [[SRCLOC3]] = !{i32 {{[0-9]+}}}
// CHECK-DAG: [[SRCLOC4]] = !{i32 {{[0-9]+}}}
// CHECK-DAG: [[ASPECTS3]] = !{i32 0}
// CHECK-DAG: [[SRCLOC5]] = !{i32 {{[0-9]+}}}
// CHECK-DAG: [[SRCLOC6]] = !{i32 {{[0-9]+}}}
// CHECK-DAG: [[SRCLOC7]] = !{i32 {{[0-9]+}}}
// CHECK-DAG: [[ASPECTS4]] = !{i32 2}
// CHECK-DAG: [[SRCLOC8]] = !{i32 {{[0-9]+}}}

0 comments on commit 24e36e8

Please sign in to comment.