
The previous name 'amdgpu_code_object_version', was misleading since this is really a property of the HSA OS. The new spelling also matches the asm directive I added in bc82cfb.
14 lines
367 B
LLVM
14 lines
367 B
LLVM
; RUN: llc -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: - 1
|
|
; CHECK: ...
|
|
|
|
!opencl.ocl.version = !{}
|
|
!llvm.module.flags = !{!0}
|
|
!0 = !{i32 1, !"amdhsa_code_object_version", i32 400}
|