[PATCH] D107828: [ARC] Add codegen for count trailing zeros intrinsic for the ARC backend
Thomas Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 10 07:50:33 PDT 2021
thomasjohns created this revision.
thomasjohns added a reviewer: marksl.
Herald added a subscriber: hiraditya.
thomasjohns requested review of this revision.
Herald added a project: LLVM.
This makes the `__builtin_ctz(x)` intrinsic generate `ffs.f %r, %r` (find first set) and `mov.eq %r, 32` (conditional move) ARC instructions. This change also added the `ffs` instruction to tablegen with a disassembly test.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D107828
Files:
llvm/lib/Target/ARC/ARCExpandPseudos.cpp
llvm/lib/Target/ARC/ARCISelLowering.cpp
llvm/lib/Target/ARC/ARCInstrInfo.td
llvm/test/CodeGen/ARC/ctlz.ll
llvm/test/CodeGen/ARC/intrinsics.ll
llvm/test/MC/Disassembler/ARC/misc.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107828.365475.patch
Type: text/x-patch
Size: 5693 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210810/31391635/attachment.bin>
More information about the llvm-commits
mailing list