Add clz and ctz for amdgcn

Programming / Compilers / GCC - ams [138bc75d-0d04-0410-961f-82ee72b054a4] - 17 December 2019 13:01 EST

2019-12-17 Andrew Stubbs

gcc/
- config/gcn/gcn.h (CLZ_DEFINED_VALUE_AT_ZERO): Define. (CTZ_DEFINED_VALUE_AT_ZERO): Define.
- config/gcn/gcn.md (s_mnemonic): Add clz and ctz. (expander): Likewise. (countzeros): New code iterator. (si2): New insn pattern. (di2): New insn pattern.

e7cbf9e45c0 Add clz and ctz for amdgcn
gcc/ChangeLog | 10 ++++++++++
gcc/config/gcn/gcn.h | 4 ++++
gcc/config/gcn/gcn.md | 30 ++++++++++++++++++++++++++++--
3 files changed, 42 insertions(+), 2 deletions(-)

Upstream: gcc.gnu.org


  • Share