[amdgcn] Add more modes for vector comparisons

Programming / Compilers / GCC - ams [138bc75d-0d04-0410-961f-82ee72b054a4] - 7 January 2020 15:27 EST

2020-01-07 Andrew Stubbs

gcc/
- config/gcn/gcn-valu.md (VEC_1REG_INT_ALT): Delete iterator. (VEC_ALLREG_ALT): New iterator. (VEC_ALLREG_INT_MODE): New iterator. (VCMP_MODE): New iterator. (VCMP_MODE_INT): New iterator. (vec_cmpudi): Use VCMP_MODE_INT. (vec_cmpv64qidi): New define_expand. (vec_cmpdi_exec): Use VCMP_MODE. (vec_cmpudi_exec): New define_expand. (vec_cmpv64qidi_exec): New define_expand. (vec_cmpdi_dup): Use VCMP_MODE. (vec_cmpdi_dup_exec): Use VCMP_MODE. (vcond): Rename ... (vcond): ... to this. (vcond_exec): Rename ... (vcond_exec): ... to this. (vcondu): Rename ... (vcondu): ... to this. (vcondu_exec): Rename ... (vcondu_exec): ... to this.
- config/gcn/gcn.c (print_operand): Fix 8 and 16 bit suffixes.
- config/gcn/gcn.md (expander): Add sign_extend and zero_extend.

b4cb3700e07 [amdgcn] Add more modes for vector comparisons
gcc/ChangeLog | 26 ++++++++
gcc/config/gcn/gcn-valu.md | 151 +++++++++++++++++++++++++++++++--------------
gcc/config/gcn/gcn.c | 6 +-
gcc/config/gcn/gcn.md | 4 +-
4 files changed, 137 insertions(+), 50 deletions(-)

Upstream: gcc.gnu.org


  • Share