llvm-project/llvm/test/CodeGen/AMDGPU/invalid-opencl-version-meta...

10 lines
254 B
LLVM

; RUN: llc -mtriple=amdgcn--amdhsa < %s | FileCheck %s
; check llc does not crash for invalid opencl version metadata
; CHECK: .section .AMDGPU.runtime_metadata
; CHECK-NEXT: .byte 1
; CHECK-NEXT: .short 256
!opencl.ocl.version = !{!0}
!0 = !{}