llvm.org GIT mirror llvm / release_50 test / CodeGen / AMDGPU / code-object-metadata-invalid-ocl-version-3.ll
release_50

Tree @release_50 (Download .tar.gz)

code-object-metadata-invalid-ocl-version-3.ll @release_50raw · history · blame

; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readobj -amdgpu-code-object-metadata | FileCheck %s

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

; CHECK: ---
; CHECK: Version: [ 1, 0 ]
; CHECK: ...

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