[PATCH] D155772: [RISCV][GlobalISel] Legalize bitshift instructions for narrow types
Thorsten via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 20 22:52:56 PDT 2023
tschuett added inline comments.
================
Comment at: llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp:59
+ .legalIf(ExtLegalFunc)
+ .clampScalar(0, XLenLLT, XLenLLT); // Just for XLen, others are handled.
+
----------------
craig.topper wrote:
> This should be 2*XLen. The AArch64 code says 128 here.
X86 did it differently, but it does not support vectors:
https://github.com/llvm/llvm-project/blob/c3648f37d0ed24e5a783d4ead4c34c9f4796b3e3/llvm/lib/Target/X86/X86LegalizerInfo.cpp#L398
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155772/new/
https://reviews.llvm.org/D155772
More information about the llvm-commits
mailing list