Scalar Memory Instructions
14 AMDGPU instructions in this category - click any row for encoding, pseudocode, and full documentation.
| Mnemonic | Syntax | Format | Summary |
|---|---|---|---|
| s_buffer_prefetch_data | s_buffer_prefetch_data | SMEM | Prefetch data into the scalar data cache, relative to a base address provided in a resource descriptor constant. |
| s_dcache_inv | s_dcache_inv | SMEM | Invalidate the scalar (L0) data cache. |
| s_dcache_inv_vol | s_dcache_inv_vol | SMEM | Invalidate the scalar (L0) data cache volatile lines. |
| s_dcache_wb | s_dcache_wb | SMEM | Write back dirty data in the scalar (L0) data cache. |
| s_dcache_wb_vol | s_dcache_wb_vol | SMEM | Write back dirty data in the scalar (L0) data cache volatile lines. |
| s_get_waveid_in_workgroup | s_get_waveid_in_workgroup | SMEM | Return the wave's ID within a workgroup 0-(N-1). |
| s_gl1_inv | s_gl1_inv | SMEM | Invalidate the GL1 cache only. |
| s_load_dword | s_load_dword SDST, SBASE, offset | SMEM | Load one 32-bit dword from memory into a scalar register, wavefront-uniform. |
| s_memrealtime | s_memrealtime | SMEM | Return current 64-bit RTC. |
| s_memtime | s_memtime | SMEM | Return current 64-bit timestamp. |
| s_prefetch_data | s_prefetch_data | SMEM | Prefetch data into the scalar data cache, relative to a base address provided. |
| s_prefetch_data_pc_rel | s_prefetch_data_pc_rel | SMEM | Prefetch data into the scalar data cache, relative to the current PC address. |
| s_prefetch_inst | s_prefetch_inst | SMEM | Prefetch instructions into the shader instruction cache, relative to a base address provided. |
| s_prefetch_inst_pc_rel | s_prefetch_inst_pc_rel | SMEM | Prefetch instructions into the shader instruction cache, relative to the current PC address. |