testsuite/100452 - fix g++.dg/vect/slp-pr99971.cc

Message ID 5qq91652-2542-508n-6944-p13nsqq1qrr1@fhfr.qr
State New
Headers show
Series
  • testsuite/100452 - fix g++.dg/vect/slp-pr99971.cc
Related show

Commit Message

Richard Biener May 10, 2021, 11:23 a.m.
This makes sure to align data so targets without unaligned
accesses can vectorize it.

Tested on x86_64-unknown-linux-gnu and sparc-solaris by Rainer, pushed.

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.26.2

Patch

diff --git a/gcc/testsuite/g++.dg/vect/slp-pr99971.cc b/gcc/testsuite/g++.dg/vect/slp-pr99971.cc
index bec6418d4e8..cf22b3331d2 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)
 {