From: siyu@isrc.iscas.ac.cn
To: gcc-patches@gcc.gnu.org
Cc: kito.cheng@sifive.com, jimw@sifive.com,
cmuellner@ventanamicro.com, palmer@dabbelt.com,
andrew@sifive.com, lazyparser@gmail.com, jiawei@iscas.ac.cn,
ben.marshall@pqshield.com, mjos@pqshield.com,
Richard.Newell@microchip.com, SiYu Wu <siyu@isrc.iscas.ac.cn>
Subject: [PATCH 21/21] [crypto]: add testcases for Zbkx
Date: Sun, 31 Oct 2021 17:48:20 +0800 [thread overview]
Message-ID: <20211031094820.1415139-1-siyu@isrc.iscas.ac.cn> (raw)
From: SiYu Wu <siyu@isrc.iscas.ac.cn>
---
gcc/testsuite/gcc.target/riscv/Zbkx.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 gcc/testsuite/gcc.target/riscv/Zbkx.c
diff --git a/gcc/testsuite/gcc.target/riscv/Zbkx.c b/gcc/testsuite/gcc.target/riscv/Zbkx.c
new file mode 100644
index 00000000000..9bd0d6f0dea
--- /dev/null
+++ b/gcc/testsuite/gcc.target/riscv/Zbkx.c
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+/* { dg-options "-march=rv64i_zbkx -mabi=lp64 -O2" } */
+
+long foo1(long rs1, long rs2)
+{
+ return __builtin_riscv_xperm8(rs1, rs2);
+}
+
+long foo2(long rs1, long rs2)
+{
+ return __builtin_riscv_xperm4(rs1, rs2);
+}
+
+
+
+/* { dg-final { scan-assembler-times "xperm8" 1 } } */
+/* { dg-final { scan-assembler-times "xperm4" 1 } } */
\ No newline at end of file
--
2.25.1
reply other threads:[~2021-10-31 9:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20211031094820.1415139-1-siyu@isrc.iscas.ac.cn \
--to=siyu@isrc.iscas.ac.cn \
--cc=Richard.Newell@microchip.com \
--cc=andrew@sifive.com \
--cc=ben.marshall@pqshield.com \
--cc=cmuellner@ventanamicro.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jiawei@iscas.ac.cn \
--cc=jimw@sifive.com \
--cc=kito.cheng@sifive.com \
--cc=lazyparser@gmail.com \
--cc=mjos@pqshield.com \
--cc=palmer@dabbelt.com \
/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).