https://gcc.gnu.org/g:4024e780b14853d614dfd9ed002b04fc88cb75f9
commit r17-4626-g4024e780b14853d614dfd9ed002b04fc88cb75f9 Author: Andrew Stubbs <[email protected]> Date: Mon Sep 21 16:45:14 2026 +0000 amdgcn: fix vector popcount (PR127542) The vector version of the popcount insn (v_bcnt) lacked the third parameter (the scalar insn was fine). gcc/ChangeLog: PR target/127542 * config/gcn/gcn-valu.md (<expander><mode>2<exec>): Add "popcount_extra_op". Diff: --- gcc/config/gcn/gcn-valu.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/gcn/gcn-valu.md b/gcc/config/gcn/gcn-valu.md index 4764c34ff89f..32021d263cc9 100644 --- a/gcc/config/gcn/gcn-valu.md +++ b/gcc/config/gcn/gcn-valu.md @@ -2789,7 +2789,7 @@ (bitunop:V_INT_1REG (match_operand:V_INT_1REG 1 "gcn_valu_src0_operand" "vSvB")))] "" - "v_<mnemonic>0\t%0, %1" + "v_<mnemonic>0\t%0, %1<popcount_extra_op>" [(set_attr "type" "vop1") (set_attr "length" "8")])
