[PATCH] D130191: [RISCV] Teach ComputeNumSignBitsForTargetNode about Intrinsic::riscv_masked_cmpxchg_i64
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 21 07:58:05 PDT 2022
reames added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:9682
+ // ANDing the result with a mask. Therefore, the sign bits are the
+ // minimum of 33 (from the LR_W) and the number of sign bits in the mask
+ // operand.
----------------
I don't follow this comment. Is there some documentation you can point to for what this intrinsic does? Or a good pointer in code to understand it?
If I'm gathering this correctly, the and-by-mask is to handle the zext of the type less than XLEN? Not following where the sign bit below that is coming from.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130191/new/
https://reviews.llvm.org/D130191
More information about the llvm-commits
mailing list