1; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s
2
3; Make sure llc does not crash for invalid opencl version metadata.
4
5; CHECK: ---
6; CHECK: amdhsa.version:
7; CHECK-NEXT: - 1
8; CHECK-NEXT: - 0
9; CHECK: ...
10
11!opencl.ocl.version = !{!0}
12!0 = !{i32 1}
13