diff options
author | Julian Brown <julian@codesourcery.com> | 2021-06-17 10:52:51 -0700 |
---|---|---|
committer | Julian Brown <julian@codesourcery.com> | 2021-06-29 08:19:56 -0700 |
commit | 0c06e46a81d86d70d788ca1a93d27b6902bd4dc1 (patch) | |
tree | 3a68b9668ab6107f690498ed1176fa3d31d65a50 /libgcc | |
parent | 8f332122589f97b9c974b168ca5b0b186296f0e4 (diff) | |
download | gcc-0c06e46a81d86d70d788ca1a93d27b6902bd4dc1.zip gcc-0c06e46a81d86d70d788ca1a93d27b6902bd4dc1.tar.gz gcc-0c06e46a81d86d70d788ca1a93d27b6902bd4dc1.tar.bz2 |
amdgcn: Add clrsbsi2/clrsbdi2 implementation
This patch adds an open-coded implementation of the clrsb<mode>2
(count leading redundant sign bit) standard names using the GCN flbit_i*
instructions for SImode and DImode. Those don't count exactly as we need,
so we need a couple of other instructions to fix up the result afterwards.
These patterns are lost from libgcc if we build it for DImode/TImode
rather than SImode/DImode, a change we make in a later patch in this
series.
2021-06-18 Julian Brown <julian@codesourcery.com>
gcc/
* config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
(s_mnemonic): Add clrsb.
(gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
(clrsb<mode>2): Add expander for SImode/DImode.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions