Also lower SHL, SRA, SRL with register operands.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
The code conforms to ISA. One doubt about the opcode used for comparing shift amount with 32.
llvm/lib/Target/Xtensa/XtensaISelLowering.cpp | ||
---|---|---|
857 | This comment applies to other SELECT nodes as well. |
This comment applies to other SELECT nodes as well.
Why the condtion is Shamt & 32 as opposed to Shamt < 32? or at least Shamt & 31 ?
Other targets (see RISC-V) use Shamt < 32.