Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/backend/amd/gfx942/embed5120-gfx942.s # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / backend / amd / gfx942 / embed5120-gfx942.s` 80 lines · 2042 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 embed5120 6 .p2align 8 7 .type embed5120,@function 8 embed5120: 9 s_load_dwordx2 s[4:5], s[0:1], 0 10 s_load_dwordx2 s[6:7], s[0:1], 8 11 s_waitcnt lgkmcnt(0) 12 s_mov_b32 s29, 0x50 13 s_sub_u32 s28, s2, s29 14 s_cbranch_scc0 .L99 15 s_sub_u32 s28, s3, 1 16 s_cbranch_scc0 .L99 17 v_and_b32 v0, 0x3ff, v0 18 v_mov_b32 v1, s2 19 v_lshlrev_b32 v1, 6, v1 20 v_add_u32 v1, v0, v1 21 v_lshlrev_b32 v2, 1, v1 22 v_lshrrev_b32 v3, 31, v1 23 v_mov_b32 v27, s5 24 v_add_co_u32 v2, vcc, s4, v2 25 v_addc_co_u32 v3, vcc, v27, v3, vcc 26 v_lshlrev_b32 v4, 2, v1 27 v_lshrrev_b32 v5, 30, v1 28 v_mov_b32 v27, s7 29 v_add_co_u32 v4, vcc, s6, v4 30 v_addc_co_u32 v5, vcc, v27, v5, vcc 31 v_mov_b32 v8, 0 32 global_load_short_d16_hi v8, v[2:3], off 33 s_waitcnt vmcnt(0) 34 global_store_dword v[4:5], v8, off 35 .L99: 36 s_endpgm 37 .Lembed5120_end: 38 .size embed5120, .Lembed5120_end-embed5120 39 .rodata 40 .p2align 6 41 .amdhsa_kernel embed5120 42 .amdhsa_user_sgpr_kernarg_segment_ptr 1 43 .amdhsa_system_sgpr_workgroup_id_x 1 44 .amdhsa_system_sgpr_workgroup_id_y 1 45 .amdhsa_system_vgpr_workitem_id 0 46 .amdhsa_kernarg_size 16 47 .amdhsa_next_free_vgpr 32 48 .amdhsa_next_free_sgpr 30 49 .amdhsa_accum_offset 32 50 .amdhsa_float_denorm_mode_32 3 51 .end_amdhsa_kernel 52 .amdgpu_metadata 53 --- 54 amdhsa.version: [ 1, 2 ] 55 amdhsa.target: amdgcn-amd-amdhsa--gfx942 56 amdhsa.kernels: 57 - .name: embed5120 58 .symbol: embed5120.kd 59 .kernarg_segment_size: 16 60 .kernarg_segment_align: 8 61 .group_segment_fixed_size: 0 62 .private_segment_fixed_size: 0 63 .wavefront_size: 64 64 .sgpr_count: 36 65 .vgpr_count: 32 66 .agpr_count: 0 67 .max_flat_workgroup_size: 64 68 .args: 69 - .name: selected_row 70 .offset: 0 71 .size: 8 72 .value_kind: global_buffer 73 .address_space: global 74 - .name: output 75 .offset: 8 76 .size: 8 77 .value_kind: global_buffer 78 .address_space: global 79 ... 80 .end_amdgpu_metadata