public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Philipp Tomsich <ptomsich@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/vrull/heads/slp-improvements)] Add testcase for #344 Date: Tue, 23 Jan 2024 20:58:03 +0000 (GMT) [thread overview] Message-ID: <20240123205803.2E3B13858021@sourceware.org> (raw) https://gcc.gnu.org/g:be077bfec2c9d3beec3cd51f1912a27cb7c7ab63 commit be077bfec2c9d3beec3cd51f1912a27cb7c7ab63 Author: Manolis Tsamis <manolis.tsamis@vrull.eu> Date: Tue Nov 28 15:31:17 2023 +0100 Add testcase for #344 Diff: --- gcc/testsuite/gcc.target/aarch64/vins_uzp.c | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gcc/testsuite/gcc.target/aarch64/vins_uzp.c b/gcc/testsuite/gcc.target/aarch64/vins_uzp.c new file mode 100644 index 00000000000..d82d1f43c15 --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/vins_uzp.c @@ -0,0 +1,36 @@ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ +/* { dg-require-effective-target aarch64_little_endian } */ + +typedef int v4si __attribute__ ((vector_size (4 * sizeof (int)))); + +v4si case1(v4si a, v4si b) { + return __builtin_shufflevector (a, b, 0, 5, 0, 5); +} + +v4si case2(v4si a, v4si b) { + return __builtin_shufflevector (a, b, 1, 5, 1, 5); +} + +v4si case3(v4si a, v4si b) { + return __builtin_shufflevector (a, b, 0, 6, 0, 6); +} + +v4si case4(v4si a, v4si b) { + return __builtin_shufflevector (a, b, 1, 7, 1, 7); +} + +v4si case5(v4si a, v4si b) { + return __builtin_shufflevector (a, b, 2, 7, 2, 7); +} + +v4si case6(v4si a, v4si b) { + return __builtin_shufflevector (b, a, 2, 7, 2, 7); +} + +v4si case7(v4si a, v4si b) { + return __builtin_shufflevector (a, b, 7, 2, 7, 2); +} + +/* { dg-final { scan-assembler-not {\ttbl\t} } } */ +/* { dg-final { scan-assembler-not {\tldr\t} } } */
next reply other threads:[~2024-01-23 20:58 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-01-23 20:58 Philipp Tomsich [this message] -- strict thread matches above, loose matches on Subject: below -- 2024-01-17 19:14 Philipp Tomsich 2023-11-28 14:54 Philipp Tomsich
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=20240123205803.2E3B13858021@sourceware.org \ --to=ptomsich@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /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: linkBe 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).