interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / backend / amd / gfx942 / step_advance-gfx942.s

74 lines · 1845 bytes Raw Blame History
1// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2// LLVM18 independent encoding oracle only.
3.amdgcn_target "amdgcn-amd-amdhsa--gfx942"
4.text
5.globl step_advance
6.p2align 8
7.type step_advance,@function
8step_advance:
9 s_sub_u32 s28, s2, 1
10 s_cbranch_scc0 .L99
11 s_sub_u32 s28, s3, 1
12 s_cbranch_scc0 .L99
13 s_load_dwordx2 s[4:5], s[0:1], 0
14 s_load_dword s6, s[0:1], 8
15 s_waitcnt lgkmcnt(0)
16 v_mov_b32 v2, s4
17 v_mov_b32 v3, s5
18 global_load_dword v8, v[2:3], off
19 s_waitcnt vmcnt(0)
20 v_readfirstlane_b32 s8, v8
21 s_nop 1
22 s_sub_u32 s28, s8, s6
23 s_cbranch_scc0 .L99
24 s_mov_b32 s24, 1
25 s_mov_b32 s25, 0
26 s_and_saveexec_b64 s[26:27], s[24:25]
27 v_add_u32 v8, 1, v8
28 global_store_dword v[2:3], v8, off
29 s_waitcnt vmcnt(0)
30.L99:
31 s_endpgm
32.Lstep_advance_end:
33.size step_advance, .Lstep_advance_end-step_advance
34.rodata
35.p2align 6
36.amdhsa_kernel step_advance
37 .amdhsa_user_sgpr_kernarg_segment_ptr 1
38 .amdhsa_system_sgpr_workgroup_id_x 1
39 .amdhsa_system_sgpr_workgroup_id_y 1
40 .amdhsa_system_vgpr_workitem_id 0
41 .amdhsa_kernarg_size 12
42 .amdhsa_next_free_vgpr 32
43 .amdhsa_next_free_sgpr 30
44 .amdhsa_accum_offset 32
45 .amdhsa_float_denorm_mode_32 3
46.end_amdhsa_kernel
47.amdgpu_metadata
48---
49amdhsa.version: [ 1, 2 ]
50amdhsa.target: amdgcn-amd-amdhsa--gfx942
51amdhsa.kernels:
52 - .name: step_advance
53 .symbol: step_advance.kd
54 .kernarg_segment_size: 12
55 .kernarg_segment_align: 8
56 .group_segment_fixed_size: 0
57 .private_segment_fixed_size: 0
58 .wavefront_size: 64
59 .sgpr_count: 36
60 .vgpr_count: 32
61 .agpr_count: 0
62 .max_flat_workgroup_size: 64
63 .args:
64 - .name: position
65 .offset: 0
66 .size: 8
67 .value_kind: global_buffer
68 .address_space: global
69 - .name: capacity
70 .offset: 8
71 .size: 4
72 .value_kind: by_value
73...
74.end_amdgpu_metadata