]> git.ipfire.org Git - thirdparty/gcc.git/commit
amdgcn: Fix various unrecognized pattern issues with add<mode>3_vcc_dup
authorAndrew Stubbs <ams@baylibre.com>
Wed, 9 Jul 2025 15:00:43 +0000 (15:00 +0000)
committerAndrew Stubbs <ams@baylibre.com>
Wed, 16 Jul 2025 11:37:36 +0000 (11:37 +0000)
commit4a0967f7509b5fad1c9bda432f71deb0d342a879
tree58af7c5a55b64729f06949c466bac077d8673444
parentc163bbd75b600cc6d1ec752425ee895ef5b9b37d
amdgcn: Fix various unrecognized pattern issues with add<mode>3_vcc_dup

The patterns did not accept inline immediate constants, even though the
hardware instructions do, which has lead to some errors in some patches I'm
working on.

Also the VCC update RTL was using the wrong operands in the wrong places.  This
appears to have been harmless(?) but is definitely not intended.

gcc/ChangeLog:

* config/gcn/gcn-valu.md (add<mode>3_vcc_dup<exec_vcc>): Change
operand 2 to allow gcn_alu_operand.  Swap the operands in the VCC
update RTL.
(add<mode>3_vcc_zext_dup): Likewise.
(add<mode>3_vcc_zext_dup_exec): Likewise.
(add<mode>3_vcc_zext_dup2): Likewise.
(add<mode>3_vcc_zext_dup2_exec): Likewise.
gcc/config/gcn/gcn-valu.md