================ @@ -82,7 +82,7 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST) { } getActionDefinitionsBuilder(G_BSWAP) - .clampScalar(0, s16, XLenLLT) + .minScalar(0, s16) ---------------- MaskRay wrote: Change to `sXLen` https://github.com/llvm/llvm-project/pull/70226