]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite/100452 - fix g++.dg/vect/slp-pr99971.cc
authorRichard Biener <rguenther@suse.de>
Mon, 10 May 2021 11:22:03 +0000 (13:22 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 10 May 2021 11:23:33 +0000 (13:23 +0200)
This makes sure to align data so targets without unaligned
accesses can vectorize it.

2021-05-10  Richard Biener  <rguenther@suse.de>

PR testsuite/100452
* g++.dg/vect/slp-pr99971.cc: Align data.

gcc/testsuite/g++.dg/vect/slp-pr99971.cc

index bec6418d4e801ea7cf9b34148c805c8931233e0c..cf22b3331d233fe9c60e087865792917c6277ff2 100644 (file)
@@ -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)
 {