OSDN Git Service

docs/AMDGPUUsage: Update assembly example
authorTom Stellard <thomas.stellard@amd.com>
Mon, 22 Feb 2016 18:36:00 +0000 (18:36 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 22 Feb 2016 18:36:00 +0000 (18:36 +0000)
Reviewers: arsenm, nhaustov

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D17461

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261550 91177308-0d34-0410-b5e6-96231b3b80d8

docs/AMDGPUUsage.rst

index 97d6662..cf7dddb 100644 (file)
@@ -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