s_bitreplicate_b64_b32 GPU Native ISA AMD Scalar
S BITREPLICATE B64 B32 Scalar Arithmetic
Substitute each bit of a 32 bit scalar input with two instances of itself and store the result into a 64 bit scalar register.
Encoding
Operands
Operand details have not yet been curated for this instruction.
GFX Target Compatibility
| Target | Support |
|---|---|
| gfx1100 | ✅ Supported |
This opcode can be used to convert a quad mask into a pixel mask; given quad mask in s0, the following sequence produces a pixel mask in s2: s_bitreplicate_b64 s2, s0 s_bitreplicate_b64 s2, s2 To perform the inverse operation see S_QUADMASK_B64.
Related
More in Scalar Arithmetic
Reference
Semantics
Example
s_bitreplicate_b64_b32 vcc, s2A real instruction accepted by the LLVM assembler, taken verbatim from LLVM's own AMDGPU MC test suite (gfx11). Not from an AMD document, and not authored here.
Sources
- User Guide for AMDGPU Backend ↗ - LLVM Project
-
"AMD Instinct MI300" Instruction Set Architecture: Reference Guide ↗
- Advanced Micro Devices, Inc.
Reference Guide, page 131. - LLVM MC assembler tests for AMDGPU (gfx11) ↗ - LLVM Project