On Sun, Nov 08, 2015 at 07:37:53PM -0500, Michael Meissner wrote:
> This patch adds support for scalar count trailing zeros instruction that is
> being added to ISA 3.0 (power9).

I bet you should change CTZ_DEFINED_VALUE_AT_ZERO as well.

> +(define_insn "ctz<mode>2_hw"
> +  [(set (match_operand:GPR 0 "gpc_reg_operand" "=r")
> +     (ctz:GPR (match_operand:GPR 1 "gpc_reg_operand" "r")))]
> +  "TARGET_CTZ"
> +  "cnttz<wd> %0,%1"
> +  [(set_attr "type" "cntlz")])

We should probably rename this attr value now.  "cntz" maybe?  Could be
later of course.


Segher

Reply via email to