diff options
author | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-07-20 14:38:06 +0000 |
---|---|---|
committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-07-20 14:38:06 +0000 |
commit | 4b1d9f7f1887a3ff21a9c17fa53927ea69d96697 (patch) | |
tree | 55a4307e9229fadb247323334086f3a146dda3f0 /llvm/test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll | |
parent | b084125dbfa389e5cc0ce9d691b990d1b86a676a (diff) | |
download | bcm5719-llvm-4b1d9f7f1887a3ff21a9c17fa53927ea69d96697.tar.gz bcm5719-llvm-4b1d9f7f1887a3ff21a9c17fa53927ea69d96697.zip |
AMDGPU: Fix bug causing crash due to invalid opencl version metadata.
Differential Revision: https://reviews.llvm.org/D22526
llvm-svn: 276119
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll')
-rw-r--r-- | llvm/test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll b/llvm/test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll new file mode 100644 index 00000000000..35b7d70596c --- /dev/null +++ b/llvm/test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll @@ -0,0 +1,9 @@ +; 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 = !{} |