llvm.org GIT mirror llvm / release_90 test / CodeGen / AMDGPU / hsa-metadata-invalid-ocl-version-3-v3.ll
release_90

Tree @release_90 (Download .tar.gz)

hsa-metadata-invalid-ocl-version-3-v3.ll @release_90raw · history · blame

; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck %s

; Make sure llc does not crash for invalid opencl version metadata.

; CHECK: ---
; CHECK: amdhsa.version:
; CHECK-NEXT: - 1
; CHECK-NEXT: - 0
; CHECK: ...

!opencl.ocl.version = !{!0}
!0 = !{i32 1}