public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Xiaolong Chen <chenxiaolong@loongson.cn>
To: gcc-patches@gcc.gnu.org
Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn,
	chenglulu@loongson.cn, Xiaolong Chen <chenxiaolong@loongson.cn>
Subject: [PATCH v3 1/9] LoongArch: Add tests of -mstrict-align option.
Date: Mon, 11 Sep 2023 11:44:31 +0800	[thread overview]
Message-ID: <20230911034439.8266-2-chenxiaolong@loongson.cn> (raw)
In-Reply-To: <20230911034439.8266-1-chenxiaolong@loongson.cn>

gcc/testsuite/ChangeLog:

	* gcc.target/loongarch/strict-align.c: New test.
---
 gcc/testsuite/gcc.target/loongarch/strict-align.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 gcc/testsuite/gcc.target/loongarch/strict-align.c

diff --git a/gcc/testsuite/gcc.target/loongarch/strict-align.c b/gcc/testsuite/gcc.target/loongarch/strict-align.c
new file mode 100644
index 00000000000..040d849584b
--- /dev/null
+++ b/gcc/testsuite/gcc.target/loongarch/strict-align.c
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+/* { dg-options "-Ofast -mstrict-align -mlasx" } */
+/* { dg-final { scan-assembler-not "vfadd.s" } } */
+
+void
+foo (float *restrict x, float *restrict y)
+{
+  x[0] = x[0] + y[0];
+  x[1] = x[1] + y[1];
+  x[2] = x[2] + y[2];
+  x[3] = x[3] + y[3];
+}
-- 
2.20.1


  reply	other threads:[~2023-09-11  3:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-11  3:44 [PATCH v3 0/9] Added support for SX/LSX vector instructions Xiaolong Chen
2023-09-11  3:44 ` Xiaolong Chen [this message]
2023-09-11  3:44 ` [PATCH v3 2/9] LoongArch: Add testsuite framework for Loongson SX/ASX Xiaolong Chen
2023-09-11  3:44 ` [PATCH v3 3/9] LoongArch: Add tests for Loongson SX builtin functions Xiaolong Chen
2023-09-11  3:44 ` [PATCH v3 4/9] LoongArch:Added support for SX vector floating-point instructions Xiaolong Chen
2023-09-11  4:11   ` Xi Ruoyao
2023-09-11  3:44 ` [PATCH v3 5/9] LoongArch:Add SX instructions for vector arithmetic addition operations Xiaolong Chen
2023-09-11  3:44 ` [PATCH v3 6/9] LoongArch:Add vector subtraction arithmetic operation SX instruction Xiaolong Chen
2023-09-11  3:44 ` [PATCH v3 7/9] LoongArch:Add vector arithmetic addition vsadd instruction Xiaolong Chen
2023-09-11  3:44 ` [PATCH v3 8/9] LoongArch:Added SX vector arithmetic multiplication instruction Xiaolong Chen

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=20230911034439.8266-2-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).