public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Richard Biener <rguenth@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-130] testsuite/105486 - adjust testcase to avoid misaligned accesses Date: Thu, 5 May 2022 08:42:34 +0000 (GMT) [thread overview] Message-ID: <20220505084234.88A7D3856241@sourceware.org> (raw) https://gcc.gnu.org/g:000f4480005035d0811e009a7cb25b42721f0a6e commit r13-130-g000f4480005035d0811e009a7cb25b42721f0a6e Author: Richard Biener <rguenther@suse.de> Date: Thu May 5 10:41:08 2022 +0200 testsuite/105486 - adjust testcase to avoid misaligned accesses This properly aligns data, increasing test coverage. 2022-05-05 Richard Biener <rguenther@suse.de> PR testsuite/105486 * gcc.dg/vect/bb-slp-pr104240.c: Align all data. Diff: --- gcc/testsuite/gcc.dg/vect/bb-slp-pr104240.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-pr104240.c b/gcc/testsuite/gcc.dg/vect/bb-slp-pr104240.c index 78905a468e0..1045f31d4d0 100644 --- a/gcc/testsuite/gcc.dg/vect/bb-slp-pr104240.c +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-pr104240.c @@ -5,6 +5,9 @@ void foo (int *c, float *x, float *y) { + c = __builtin_assume_aligned (c, __BIGGEST_ALIGNMENT__); + x = __builtin_assume_aligned (x, __BIGGEST_ALIGNMENT__); + y = __builtin_assume_aligned (y, __BIGGEST_ALIGNMENT__); c[0] = x[0] < y[0]; c[1] = y[1] > x[1]; c[2] = x[2] < y[2];
reply other threads:[~2022-05-05 8:42 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=20220505084234.88A7D3856241@sourceware.org \ --to=rguenth@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).