summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2016-11-10 21:18:49 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2016-11-10 21:18:49 +0000
commitd6fbe65040a91483035d7de8f7accd07449abfd4 (patch)
treeb829582cb75aed3cf96b6666b71dd09327eae98d /llvm/test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll
parent949f9b9f641720804832e460b5e04df47ec6b8a5 (diff)
downloadbcm5719-llvm-d6fbe65040a91483035d7de8f7accd07449abfd4.tar.gz
bcm5719-llvm-d6fbe65040a91483035d7de8f7accd07449abfd4.zip
AMDGPU: Emit runtime metadata as a note element in .note section
Currently runtime metadata is emitted as an ELF section with name .AMDGPU.runtime_metadata. However there is a standard way to convey vendor specific information about how to run an ELF binary, which is called vendor-specific note element (http://www.netbsd.org/docs/kernel/elf-notes.html). This patch lets AMDGPU backend emits runtime metadata as a note element in .note section. Differential Revision: https://reviews.llvm.org/D25781 llvm-svn: 286502
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll b/llvm/test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll
index 35b7d70596c..04326699fbf 100644
--- a/llvm/test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll
+++ b/llvm/test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll
@@ -1,9 +1,11 @@
; 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
+; CHECK: .section .note,#alloc
+; CHECK-NEXT: .long 4
+; CHECK-NEXT: .long {{.+}}
+; CHECK-NEXT: .long 7
+; CHECK-NEXT: .asciz "AMD"
!opencl.ocl.version = !{!0}
!0 = !{}
OpenPOWER on IntegriCloud