[PATCH] D17461: docs/AMDGPUUsage: Update assembly example

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 19 12:04:30 PST 2016


tstellarAMD created this revision.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.

http://reviews.llvm.org/D17461

Files:
  docs/AMDGPUUsage.rst

Index: docs/AMDGPUUsage.rst
===================================================================
--- docs/AMDGPUUsage.rst
+++ docs/AMDGPUUsage.rst
@@ -153,7 +153,10 @@
    .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 @@
      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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17461.48541.patch
Type: text/x-patch
Size: 589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160219/5fe15072/attachment.bin>


More information about the llvm-commits mailing list