From: Pan Li <pan2...@intel.com>

The RVV fixed point insn VX combine should focus on the insn itself,
instead of any standard name like avg_floor, the vxrm should be
the value of insn as is.

The below test suites are passed for this patch series.
* The rv64gcv fully regression test.

Pan Li (2):
  RISC-V: Avoid vaaddu.vx combine pattern pollute VXRM csr
  RISC-V: Add test case for vx combine polluting VXRM

 gcc/config/riscv/autovec-opt.md               | 28 ++++---
 gcc/config/riscv/riscv-protos.h               | 12 ++-
 gcc/config/riscv/riscv-v.cc                   | 79 ++++++++++++++++++-
 gcc/config/riscv/vector-iterators.md          | 16 ++++
 .../rvv/autovec/vx_vf/vx-fixed-vxrm-1-u16.c   | 23 ++++++
 .../rvv/autovec/vx_vf/vx-fixed-vxrm-1-u32.c   | 23 ++++++
 .../rvv/autovec/vx_vf/vx-fixed-vxrm-1-u64.c   | 23 ++++++
 .../rvv/autovec/vx_vf/vx-fixed-vxrm-1-u8.c    | 23 ++++++
 .../riscv/rvv/autovec/vx_vf/vx-fixed-vxrm.h   | 28 +++++++
 9 files changed, 242 insertions(+), 13 deletions(-)
 create mode 100644 
gcc/testsuite/gcc.target/riscv/rvv/autovec/vx_vf/vx-fixed-vxrm-1-u16.c
 create mode 100644 
gcc/testsuite/gcc.target/riscv/rvv/autovec/vx_vf/vx-fixed-vxrm-1-u32.c
 create mode 100644 
gcc/testsuite/gcc.target/riscv/rvv/autovec/vx_vf/vx-fixed-vxrm-1-u64.c
 create mode 100644 
gcc/testsuite/gcc.target/riscv/rvv/autovec/vx_vf/vx-fixed-vxrm-1-u8.c
 create mode 100644 
gcc/testsuite/gcc.target/riscv/rvv/autovec/vx_vf/vx-fixed-vxrm.h

-- 
2.43.0

Reply via email to