diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-01-13 20:06:04 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-01-13 20:06:04 +0000 |
| commit | b289257c7f3ed78b7d3971c596d7c60a9050c705 (patch) | |
| tree | d6b57e29a5a86347a020d6f0cae76cc2d0f3bf8d /test/ELF/amdgpu-entry.s | |
| parent | fba2c04f31e119eacf142fcbbaabd5a9e63a39ed (diff) | |
Notes
Diffstat (limited to 'test/ELF/amdgpu-entry.s')
| -rw-r--r-- | test/ELF/amdgpu-entry.s | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/ELF/amdgpu-entry.s b/test/ELF/amdgpu-entry.s new file mode 100644 index 000000000000..a17d243214b7 --- /dev/null +++ b/test/ELF/amdgpu-entry.s @@ -0,0 +1,16 @@ +# RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri %s -o %t.o +# RUN: not lld -e kernel0 -flavor gnu %t.o -o %t + +# REQUIRES: amdgpu + +.hsa_code_object_version 1,0 +.hsa_code_object_isa 7,0,0,"AMD","AMDGPU" + +.hsatext +.globl kernel0 +.align 256 +.amdgpu_hsa_kernel kernel0 +kernel0: + s_endpgm +.Lfunc_end0: + .size kernel0, .Lfunc_end0-kernel0 |
