]> git.ipfire.org Git - thirdparty/gcc.git/commit
amdgcn: Add [us]mulsi3_highpart SGPR alternatives
authorJulian Brown <julian@codesourcery.com>
Thu, 17 Jun 2021 18:02:55 +0000 (11:02 -0700)
committerJulian Brown <julian@codesourcery.com>
Tue, 29 Jun 2021 15:19:56 +0000 (08:19 -0700)
commit53b1d1691857a1d3e28566d05bb434fa555c4e8a
tree72ff8136806e14e385483cc485a0d43193268b55
parent5c127c4cac308429cba483a2ac4e175c2ab26165
amdgcn: Add [us]mulsi3_highpart SGPR alternatives

This patch splits the <su>mulsi3_highpart pattern into an expander and
register/immediate alternatives (to avoid meaningless sign/zero_extends on
constants), and adds alternatives for SGPR high-part multiply instructions
on GCN5+.

2021-06-29  Julian Brown  <julian@codesourcery.com>

gcc/
* config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
(<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
gcc/config/gcn/gcn.md