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 / readfirst_probe-gfx942.s

82 lines · 2127 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 readfirst_probe
6.p2align 8
7.type readfirst_probe,@function
8readfirst_probe:
9 s_load_dwordx4 s[4:7], s[0:1], 0
10 s_load_dwordx2 s[8:9], s[0:1], 16
11 s_waitcnt lgkmcnt(0)
12 v_lshlrev_b32 v2, 2, v0
13 v_mov_b32 v3, s5
14 v_add_co_u32 v2, vcc, s4, v2
15 v_addc_co_u32 v3, vcc, 0, v3, vcc
16 global_load_dword v8, v[2:3], off
17 s_waitcnt vmcnt(0)
18 s_and_saveexec_b64 s[24:25], s[8:9]
19 v_readfirstlane_b32 s10, v8
20 s_mov_b64 exec, s[24:25]
21 s_nop 1
22 v_mov_b32 v8, s10
23 v_mov_b32 v2, s6
24 v_mov_b32 v3, s7
25 s_mov_b32 s28, 1
26 s_mov_b32 s29, 0
27 s_and_saveexec_b64 s[24:25], s[28:29]
28 global_store_dword v[2:3], v8, off
29 s_waitcnt vmcnt(0)
30 s_endpgm
31.Lreadfirst_probe_end:
32.size readfirst_probe, .Lreadfirst_probe_end-readfirst_probe
33.rodata
34.p2align 6
35.amdhsa_kernel readfirst_probe
36 .amdhsa_user_sgpr_kernarg_segment_ptr 1
37 .amdhsa_system_sgpr_workgroup_id_x 1
38 .amdhsa_system_sgpr_workgroup_id_y 1
39 .amdhsa_system_vgpr_workitem_id 0
40 .amdhsa_kernarg_size 24
41 .amdhsa_next_free_vgpr 32
42 .amdhsa_next_free_sgpr 30
43 .amdhsa_accum_offset 32
44 .amdhsa_float_denorm_mode_32 3
45.end_amdhsa_kernel
46.amdgpu_metadata
47---
48amdhsa.version: [ 1, 2 ]
49amdhsa.target: amdgcn-amd-amdhsa--gfx942
50amdhsa.kernels:
51 - .name: readfirst_probe
52 .symbol: readfirst_probe.kd
53 .kernarg_segment_size: 24
54 .kernarg_segment_align: 8
55 .group_segment_fixed_size: 0
56 .private_segment_fixed_size: 0
57 .wavefront_size: 64
58 .sgpr_count: 36
59 .vgpr_count: 32
60 .agpr_count: 0
61 .max_flat_workgroup_size: 64
62 .args:
63 - .name: input
64 .offset: 0
65 .size: 8
66 .value_kind: global_buffer
67 .address_space: global
68 - .name: output
69 .offset: 8
70 .size: 8
71 .value_kind: global_buffer
72 .address_space: global
73 - .name: mask_lo
74 .offset: 16
75 .size: 4
76 .value_kind: by_value
77 - .name: mask_hi
78 .offset: 20
79 .size: 4
80 .value_kind: by_value
81...
82.end_amdgpu_metadata