From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1666) id 88A7D3856241; Thu, 5 May 2022 08:42:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88A7D3856241 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Richard Biener To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-130] testsuite/105486 - adjust testcase to avoid misaligned accesses X-Act-Checkin: gcc X-Git-Author: Richard Biener X-Git-Refname: refs/heads/master X-Git-Oldrev: e1a41143a2e24c65d94364fd82b165ff71a759d8 X-Git-Newrev: 000f4480005035d0811e009a7cb25b42721f0a6e Message-Id: <20220505084234.88A7D3856241@sourceware.org> Date: Thu, 5 May 2022 08:42:34 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2022 08:42:34 -0000 https://gcc.gnu.org/g:000f4480005035d0811e009a7cb25b42721f0a6e commit r13-130-g000f4480005035d0811e009a7cb25b42721f0a6e Author: Richard Biener 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 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];