Pushed 2-7 to r14-6955...r14-6961.

在 2024/1/5 上午11:43, chenxiaolong 写道:
v1->v2:
   On the basis of v1, the reason of the analysis problem is described in 
detail.

When using binutils, which does not support vectorization, and the gcc compiler
toolchain, which does support vectorization, the following two types of error
problems occur in gcc regression testing.

1.Failure of common tests in the gcc.dg/vect directory.

Regression testing of GCC has found that vect-bic-bitmask-{12/23}.c has errors
at compile time, and similar problems exist on various architectures (e.g. x86,
aarch64,riscv, etc.). The reason is that the behavior of the program is the
assembly state, and the vector instruction cannot be recognized in the assembly
stage and an error occurs.

2.FAIL items of common vectorization tests are supported.

When LoongArch architecture supports common vector test cases, GCC regression
testing has many failures. Reasons include a lack of detection of targets
Rules, lack of vectorization options, lack of specific compilation options,
check for instruction set differences and test behavior for program Settings,
etc. For details, see the following patches:

chenxiaolong (7):
   LoongArch: testsuite:Added support for vector object detection.
   LoongArch: testsuite:Modify the test behavior of the
     vect-bic-bitmask-{12,23}.c file.
   LoongArch: testsuite:Added detection support for LoongArch
     architecture in vect-{82,83}.c.
   LoongArch: testsuite:Fix FAIL in file bind_c_array_params_2.f90.
   LoongArch: testsuite:Delete the default run behavior in pr60510.f.
   LoongArch: testsuite:Added additional vectorization "-mlasx"
     compilation option.
   LoongArch: testsuite:Give up the detection of the
     gcc.dg/fma-{3,4,6,7}.c file.

  gcc/testsuite/gcc.dg/fma-3.c                  |   2 +-
  gcc/testsuite/gcc.dg/fma-4.c                  |   2 +-
  gcc/testsuite/gcc.dg/fma-6.c                  |   2 +-
  gcc/testsuite/gcc.dg/fma-7.c                  |   2 +-
  gcc/testsuite/gcc.dg/vect/bb-slp-pattern-1.c  |   1 +
  .../gcc.dg/vect/slp-widen-mult-half.c         |   1 +
  gcc/testsuite/gcc.dg/vect/vect-82.c           |   2 +-
  gcc/testsuite/gcc.dg/vect/vect-83.c           |   2 +-
  .../gcc.dg/vect/vect-bic-bitmask-12.c         |   2 +-
  .../gcc.dg/vect/vect-bic-bitmask-23.c         |   2 +-
  .../gcc.dg/vect/vect-widen-mult-const-s16.c   |   1 +
  .../gcc.dg/vect/vect-widen-mult-const-u16.c   |   1 +
  .../gcc.dg/vect/vect-widen-mult-half-u8.c     |   1 +
  .../gcc.dg/vect/vect-widen-mult-half.c        |   1 +
  .../gcc.dg/vect/vect-widen-mult-u16.c         |   1 +
  .../gcc.dg/vect/vect-widen-mult-u8-s16-s32.c  |   1 +
  .../gcc.dg/vect/vect-widen-mult-u8-u32.c      |   1 +
  .../gcc.dg/vect/vect-widen-mult-u8.c          |   1 +
  .../gfortran.dg/bind_c_array_params_2.f90     |   4 +-
  gcc/testsuite/gfortran.dg/vect/pr60510.f      |   1 -
  gcc/testsuite/lib/target-supports.exp         | 217 +++++++++++++-----
  21 files changed, 183 insertions(+), 65 deletions(-)


Reply via email to