search for: invctpop

Displaying 2 results from an estimated 2 matches for "invctpop".

2018 Jan 18
0
CTPOP and zeroes
...CTPOP(operand)"? There is no target-independent ISD opcode for the operation you're describing (as far as I know, no in-tree target has an instruction like that).  I would suggest handling this using pattern-matching in your backend, e.g. "def : Pat<(i32 (ctpop (not i32:$a))), (INVCTPOP R:$a)>;". -Eli -- Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
2018 Jan 18
2
CTPOP and zeroes
Quick question. The 'ISD::CTPOP' node allows a target to lower the counting of ones in a word to a single instruction. Our target also has an instruction for counting the zeroes in a word. Does CTPOP support counting of zeroes as well as ones instead of doing either "CTPOP(INVERT(operand))" or "N-bits - CTPOP(operand)"? Thanks, MartinO