From b8a91bbf0476e1b2c44520f56d131dfbdccb8237 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 22 Feb 2016 18:36:00 +0000 Subject: [PATCH] docs/AMDGPUUsage: Update assembly example Reviewers: arsenm, nhaustov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D17461 llvm-svn: 261550 --- llvm/docs/AMDGPUUsage.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/llvm/docs/AMDGPUUsage.rst b/llvm/docs/AMDGPUUsage.rst index 97d6662a2edb..cf7dddbdb772 100644 --- a/llvm/docs/AMDGPUUsage.rst +++ b/llvm/docs/AMDGPUUsage.rst @@ -153,7 +153,10 @@ Here is an example of a minimal amd_kernel_code_t specification: .hsa_code_object_version 1,0 .hsa_code_object_isa - .text + .hsatext + .globl hello_world + .p2align 8 + .amdgpu_hsa_kernel hello_world hello_world: @@ -173,5 +176,7 @@ Here is an example of a minimal amd_kernel_code_t specification: s_waitcnt lgkmcnt(0) v_mov_b32 v1, s0 v_mov_b32 v2, s1 - flat_store_dword v0, v[1:2] + flat_store_dword v[1:2], v0 s_endpgm +.Lfunc_end0: + .size hello_world, .Lfunc_end0-hello_world