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/evidence/AMD-GFX942-SGEMM-20261112T220232Z/llvm-sgemm-encodings.txt # 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 / evidence / AMD-GFX942-SGEMM-20261112T220232Z / llvm-sgemm-encodings.txt` 160 lines · 7263 bytes Raw Blame History 1 .text 2 .amdgcn_target "amdgcn-amd-amdhsa--gfx942" 3 4 .globl sgemm 5 .p2align 8 6 .type sgemm,@function 7 sgemm: 8 s_load_dwordx4 s[4:7], s[0:1], 0x0 ; encoding: [0x00,0x01,0x0a,0xc0,0x00,0x00,0x00,0x00] 9 s_load_dwordx2 s[8:9], s[0:1], 0x10 ; encoding: [0x00,0x02,0x06,0xc0,0x10,0x00,0x00,0x00] 10 s_load_dwordx2 s[10:11], s[0:1], 0x18 ; encoding: [0x80,0x02,0x06,0xc0,0x18,0x00,0x00,0x00] 11 s_load_dword s12, s[0:1], 0x20 ; encoding: [0x00,0x03,0x02,0xc0,0x20,0x00,0x00,0x00] 12 v_and_b32_e32 v0, 0x3ff, v0 ; encoding: [0xff,0x00,0x00,0x26,0xff,0x03,0x00,0x00] 13 s_waitcnt lgkmcnt(0) ; encoding: [0x7f,0xc0,0x8c,0xbf] 14 s_sub_u32 s14, s3, s10 ; encoding: [0x03,0x0a,0x8e,0x80] 15 s_cbranch_scc1 .Lend ; encoding: [A,A,0x85,0xbf] 16 ; fixup A - offset: 0, value: .Lend, kind: fixup_si_sopp_br 17 s_lshl_b32 s14, s2, 6 ; encoding: [0x02,0x86,0x0e,0x8e] 18 v_add_u32_e32 v1, s14, v0 ; encoding: [0x0e,0x00,0x02,0x68] 19 v_cmp_gt_u32_e32 vcc, s11, v1 ; encoding: [0x0b,0x02,0x98,0x7d] 20 s_and_saveexec_b64 s[20:21], vcc ; encoding: [0x6a,0x20,0x94,0xbe] 21 s_cbranch_execz .Lend ; encoding: [A,A,0x88,0xbf] 22 ; fixup A - offset: 0, value: .Lend, kind: fixup_si_sopp_br 23 v_lshlrev_b32_e32 v2, 2, v1 ; encoding: [0x82,0x02,0x04,0x24] 24 v_lshrrev_b32_e32 v3, 30, v1 ; encoding: [0x9e,0x02,0x06,0x20] 25 s_mul_i32 s14, s3, s12 ; encoding: [0x03,0x0c,0x0e,0x92] 26 s_mul_hi_u32 s15, s3, s12 ; encoding: [0x03,0x0c,0x0f,0x96] 27 s_lshl_b64 s[14:15], s[14:15], 2 ; encoding: [0x0e,0x82,0x8e,0x8e] 28 s_add_u32 s14, s14, s4 ; encoding: [0x0e,0x04,0x0e,0x80] 29 s_addc_u32 s15, s15, s5 ; encoding: [0x0f,0x05,0x0f,0x82] 30 v_mov_b32_e32 v8, s14 ; encoding: [0x0e,0x02,0x10,0x7e] 31 v_mov_b32_e32 v9, s15 ; encoding: [0x0f,0x02,0x12,0x7e] 32 v_mov_b32_e32 v7, s7 ; encoding: [0x07,0x02,0x0e,0x7e] 33 v_add_co_u32_e32 v10, vcc, s6, v2 ; encoding: [0x06,0x04,0x14,0x32] 34 v_addc_co_u32_e32 v11, vcc, v7, v3, vcc ; encoding: [0x07,0x07,0x16,0x38] 35 s_mul_i32 s16, s3, s11 ; encoding: [0x03,0x0b,0x10,0x92] 36 s_mul_hi_u32 s17, s3, s11 ; encoding: [0x03,0x0b,0x11,0x96] 37 s_lshl_b64 s[16:17], s[16:17], 2 ; encoding: [0x10,0x82,0x90,0x8e] 38 s_add_u32 s16, s16, s8 ; encoding: [0x10,0x08,0x10,0x80] 39 s_addc_u32 s17, s17, s9 ; encoding: [0x11,0x09,0x11,0x82] 40 v_mov_b32_e32 v7, s17 ; encoding: [0x11,0x02,0x0e,0x7e] 41 v_add_co_u32_e32 v12, vcc, s16, v2 ; encoding: [0x10,0x04,0x18,0x32] 42 v_addc_co_u32_e32 v13, vcc, v7, v3, vcc ; encoding: [0x07,0x07,0x1a,0x38] 43 s_mov_b32 s18, s11 ; encoding: [0x0b,0x00,0x92,0xbe] 44 s_mov_b32 s19, 0 ; encoding: [0x80,0x00,0x93,0xbe] 45 s_lshl_b64 s[18:19], s[18:19], 2 ; encoding: [0x12,0x82,0x92,0x8e] 46 v_mov_b32_e32 v7, s19 ; encoding: [0x13,0x02,0x0e,0x7e] 47 v_mov_b32_e32 v4, 0 ; encoding: [0x80,0x02,0x08,0x7e] 48 s_sub_u32 s13, s12, 1 ; encoding: [0x0c,0x81,0x8d,0x80] 49 s_cbranch_scc0 .Lstore ; encoding: [A,A,0x84,0xbf] 50 ; fixup A - offset: 0, value: .Lstore, kind: fixup_si_sopp_br 51 .Lloop: 52 global_load_dword v14, v[8:9], off ; encoding: [0x00,0x80,0x50,0xdc,0x08,0x00,0x7f,0x0e] 53 global_load_dword v6, v[10:11], off ; encoding: [0x00,0x80,0x50,0xdc,0x0a,0x00,0x7f,0x06] 54 s_waitcnt vmcnt(0) ; encoding: [0x70,0x0f,0x8c,0xbf] 55 v_fmac_f32_e32 v4, v14, v6 ; encoding: [0x0e,0x0d,0x08,0x76] 56 v_add_co_u32_e32 v8, vcc, 4, v8 ; encoding: [0x84,0x10,0x10,0x32] 57 v_addc_co_u32_e32 v9, vcc, 0, v9, vcc ; encoding: [0x80,0x12,0x12,0x38] 58 v_add_co_u32_e32 v10, vcc, s18, v10 ; encoding: [0x12,0x14,0x14,0x32] 59 v_addc_co_u32_e32 v11, vcc, v7, v11, vcc ; encoding: [0x07,0x17,0x16,0x38] 60 s_sub_u32 s13, s13, 1 ; encoding: [0x0d,0x81,0x8d,0x80] 61 s_cbranch_scc1 .Lloop ; encoding: [A,A,0x85,0xbf] 62 ; fixup A - offset: 0, value: .Lloop, kind: fixup_si_sopp_br 63 .Lstore: 64 global_store_dword v[12:13], v4, off ; encoding: [0x00,0x80,0x70,0xdc,0x0c,0x04,0x7f,0x00] 65 .Lend: 66 s_endpgm ; encoding: [0x00,0x00,0x81,0xbf] 67 .Lsgemm_end: 68 .size sgemm, .Lsgemm_end-sgemm 69 .section .rodata,"a",@progbits 70 .p2align 6, 0x0 71 .amdhsa_kernel sgemm 72 .amdhsa_group_segment_fixed_size 0 73 .amdhsa_private_segment_fixed_size 0 74 .amdhsa_kernarg_size 36 75 .amdhsa_user_sgpr_count 2 76 .amdhsa_user_sgpr_dispatch_ptr 0 77 .amdhsa_user_sgpr_queue_ptr 0 78 .amdhsa_user_sgpr_kernarg_segment_ptr 1 79 .amdhsa_user_sgpr_dispatch_id 0 80 .amdhsa_user_sgpr_kernarg_preload_length 0 81 .amdhsa_user_sgpr_kernarg_preload_offset 0 82 .amdhsa_user_sgpr_private_segment_size 0 83 .amdhsa_uses_dynamic_stack 0 84 .amdhsa_enable_private_segment 0 85 .amdhsa_system_sgpr_workgroup_id_x 1 86 .amdhsa_system_sgpr_workgroup_id_y 1 87 .amdhsa_system_sgpr_workgroup_id_z 0 88 .amdhsa_system_sgpr_workgroup_info 0 89 .amdhsa_system_vgpr_workitem_id 0 90 .amdhsa_next_free_vgpr 15 91 .amdhsa_next_free_sgpr 22 92 .amdhsa_accum_offset 16 93 .amdhsa_reserve_xnack_mask 1 94 .amdhsa_float_round_mode_32 0 95 .amdhsa_float_round_mode_16_64 0 96 .amdhsa_float_denorm_mode_32 3 97 .amdhsa_float_denorm_mode_16_64 3 98 .amdhsa_dx10_clamp 1 99 .amdhsa_ieee_mode 1 100 .amdhsa_fp16_overflow 0 101 .amdhsa_tg_split 0 102 .amdhsa_exception_fp_ieee_invalid_op 0 103 .amdhsa_exception_fp_denorm_src 0 104 .amdhsa_exception_fp_ieee_div_zero 0 105 .amdhsa_exception_fp_ieee_overflow 0 106 .amdhsa_exception_fp_ieee_underflow 0 107 .amdhsa_exception_fp_ieee_inexact 0 108 .amdhsa_exception_int_div_zero 0 109 .end_amdhsa_kernel 110 111 .amdgpu_metadata 112 --- 113 amdhsa.kernels: 114 - .agpr_count: 0 115 .args: 116 - .address_space: global 117 .name: A 118 .offset: 0 119 .size: 8 120 .value_kind: global_buffer 121 - .address_space: global 122 .name: B 123 .offset: 8 124 .size: 8 125 .value_kind: global_buffer 126 - .address_space: global 127 .name: C 128 .offset: 16 129 .size: 8 130 .value_kind: global_buffer 131 - .name: M 132 .offset: 24 133 .size: 4 134 .value_kind: by_value 135 - .name: !str N 136 .offset: 28 137 .size: 4 138 .value_kind: by_value 139 - .name: K 140 .offset: 32 141 .size: 4 142 .value_kind: by_value 143 .group_segment_fixed_size: 0 144 .kernarg_segment_align: 8 145 .kernarg_segment_size: 36 146 .max_flat_workgroup_size: 64 147 .name: sgemm 148 .private_segment_fixed_size: 0 149 .sgpr_count: 28 150 .symbol: sgemm.kd 151 .vgpr_count: 15 152 .wavefront_size: 64 153 amdhsa.target: amdgcn-amd-amdhsa--gfx942 154 amdhsa.version: 155 - 1 156 - 2 157 ... 158 159 .end_amdgpu_metadata 160