amdgcn: Resolve insn conditions at compile time
authorAndrew Stubbs <ams@codesourcery.com>
Thu, 26 Mar 2020 21:22:45 +0000 (21:22 +0000)
committerAndrew Stubbs <ams@codesourcery.com>
Tue, 11 Oct 2022 10:37:10 +0000 (11:37 +0100)
commit0d8753cf30486c4e7fb07455b7cae49aa812c6a4
tree9ade043577b6405a2e0977e6d1b3e4e51eb8d347
parent45381d6f9f4e7b5c7b062f5ad8cc9788091c2d07
amdgcn: Resolve insn conditions at compile time

GET_MODE_NUNITS isn't a compile time constant, so we end up with many
impossible insns in the machine description.  Adding MODE_VF allows the insns
to be eliminated completely.

gcc/ChangeLog:

* config/gcn/gcn-valu.md
(<cvt_name><VCVT_MODE:mode><VCVT_FMODE:mode>2<exec>): Use MODE_VF.
(<cvt_name><VCVT_FMODE:mode><VCVT_IMODE:mode>2<exec>): Likewise.
* config/gcn/gcn.h (MODE_VF): New macro.
gcc/config/gcn/gcn-valu.md
gcc/config/gcn/gcn.h