From: Richard Biener Date: Mon, 10 May 2021 11:22:03 +0000 (+0200) Subject: testsuite/100452 - fix g++.dg/vect/slp-pr99971.cc X-Git-Tag: basepoints/gcc-13~7651 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cce4471bb45f72820eb6c15b4a75e67f704b209e;p=thirdparty%2Fgcc.git testsuite/100452 - fix g++.dg/vect/slp-pr99971.cc This makes sure to align data so targets without unaligned accesses can vectorize it. 2021-05-10 Richard Biener PR testsuite/100452 * g++.dg/vect/slp-pr99971.cc: Align data. --- diff --git a/gcc/testsuite/g++.dg/vect/slp-pr99971.cc b/gcc/testsuite/g++.dg/vect/slp-pr99971.cc index bec6418d4e80..cf22b3331d23 100644 --- a/gcc/testsuite/g++.dg/vect/slp-pr99971.cc +++ b/gcc/testsuite/g++.dg/vect/slp-pr99971.cc @@ -22,7 +22,7 @@ struct A d -= that.d; return *this; } -}; +} __attribute__((aligned(__BIGGEST_ALIGNMENT__))); void test(A& x, A const& y1, A const& y2) {