[llvm] [AMDGPU][MC] Implement fft and rotate modes for ds_swizzle_b32 (PR #108064)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 03:14:12 PDT 2024
================
@@ -1556,6 +1556,13 @@ void AMDGPUInstPrinter::printSwizzle(const MCInst *MI, unsigned OpNo,
O << ")";
}
}
+ } else if ((Imm & FFT_ROTATE_MODE_MASK) == FFT_MODE_ENC) {
+ O << "swizzle(" << IdSymbolic[ID_FFT] << ","
+ << (Imm & FFT_SWIZZLE_TYPE_MASK) << ")";
+ } else if ((Imm & FFT_ROTATE_MODE_MASK) == ROTATE_MODE_ENC) {
+ O << "swizzle(" << IdSymbolic[ID_ROTATE] << ","
+ << ((Imm >> ROTATE_DIR_SHIFT) & ROTATE_DIR_MASK) << ","
+ << ((Imm >> ROTATE_SIZE_SHIFT) & ROTATE_SIZE_MASK) << ")";
----------------
arsenm wrote:
Single quotes around single characters
https://github.com/llvm/llvm-project/pull/108064
More information about the llvm-commits
mailing list