public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: chenxiaolong <chenxiaolong@loongson.cn>
To: gcc-patches@gcc.gnu.org
Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn,
	chenglulu@loongson.cn, chenxiaolong <chenxiaolong@loongson.cn>
Subject: [PATCH v2 0/7] LoongArch:Enable testing for common
Date: Fri,  5 Jan 2024 11:43:22 +0800	[thread overview]
Message-ID: <20240105034329.21117-1-chenxiaolong@loongson.cn> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 2934 bytes --]

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(-)

-- 
2.20.1


             reply	other threads:[~2024-01-05  3:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-05  3:43 chenxiaolong [this message]
2024-01-05  3:43 ` [PATCH v2 1/7] LoongArch: testsuite:Added support for vector object detection chenxiaolong
2024-01-05  3:43 ` [PATCH v2 2/7] LoongArch: testsuite:Modify the test behavior of the vect-bic-bitmask-{12,23}.c file chenxiaolong
2024-01-05  3:43 ` [PATCH v2 3/7] LoongArch: testsuite:Added detection support for LoongArch architecture in vect-{82,83}.c chenxiaolong
2024-01-05  3:43 ` [PATCH v2 4/7] LoongArch: testsuite:Fix FAIL in file bind_c_array_params_2.f90 chenxiaolong
2024-01-05  3:43 ` [PATCH v2 5/7] LoongArch: testsuite:Delete the default run behavior in pr60510.f chenxiaolong
2024-01-05  3:43 ` [PATCH v2 6/7] LoongArch: testsuite:Added additional vectorization "-mlasx" compilation option chenxiaolong
2024-01-05  3:43 ` [PATCH v2 7/7] LoongArch: testsuite:Give up the detection of the gcc.dg/fma-{3,4,6,7}.c file chenxiaolong
2024-01-05 12:29 ` [pushed][PATCH v2 0/7] LoongArch:Enable testing for common chenglulu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240105034329.21117-1-chenxiaolong@loongson.cn \
    --to=chenxiaolong@loongson.cn \
    --cc=chenglulu@loongson.cn \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=i@xen0n.name \
    --cc=xry111@xry111.site \
    --cc=xuchenghua@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).