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

12 lines
300 B
LLVM

; RUN: llc -mtriple=amdgcn--amdhsa < %s | FileCheck %s
; check llc does not crash for invalid opencl version metadata
; CHECK: .section .note,#alloc
; CHECK-NEXT: .long 4
; CHECK-NEXT: .long {{.+}}
; CHECK-NEXT: .long 7
; CHECK-NEXT: .asciz "AMD"
!opencl.ocl.version = !{!0}
!0 = !{}