]> gcc.gnu.org Git - gcc.git/commit
amdgcn: Fix instruction generation for exp2 and log2 operations
authorKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 27 Sep 2022 21:24:55 +0000 (21:24 +0000)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 27 Sep 2022 21:24:55 +0000 (21:24 +0000)
commitb656c03ff8c4803e3af13429e2bec93709946f2f
treeed050b5a29eb8cebb0111bed2bb953bc1bbe0d16
parentf01e3b9dfd81973498c0a71a266e530aeb6f0c97
amdgcn: Fix instruction generation for exp2 and log2 operations

The GCN instructions for the exp2 and log2 operations are v_exp_* and v_log_*
respectively, which unfortunately do not line up with the RTL naming
convention.  To deal with this, a new set of int attributes is now used when
generating the assembly for these instructions.

2022-09-27  Kwok Cheung Yeung  <kcy@codesourcery.com>

gcc/
* config/gcn/gcn-valu.md (math_unop_insn): New attribute.
(<math_unop><mode>2, <math_unop><mode>2<exec>, <math_unop><mode>2,
<math_unop><mode>2<exec>, *<math_unop><mode>2_insn,
*<math_unop><mode>2<exec>_insn): Use math_unop_insn to generate
assembler output.
gcc/ChangeLog.omp
gcc/config/gcn/gcn-valu.md
This page took 0.062856 seconds and 6 git commands to generate.