testsuite/99955 - fix may_alias declaration of vector

Message ID nycvar.YFH.7.76.2104071322310.9288@elmra.sevgm.obk
State New
Headers show
Series
  • testsuite/99955 - fix may_alias declaration of vector
Related show

Commit Message

Richard Biener April 7, 2021, 11:22 a.m.
This fixes the order of the type attributes to preserve may_alias
for the vector type.

Pushed.

2021-04-07  Richard Biener  <rguenther@suse.de>

	PR testsuite/99955
	* gcc.c-torture/execute/pr92618.c: Move may_alias attributes
	last.
---
 gcc/testsuite/gcc.c-torture/execute/pr92618.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.26.2

Patch

diff --git a/gcc/testsuite/gcc.c-torture/execute/pr92618.c b/gcc/testsuite/gcc.c-torture/execute/pr92618.c
index 2a5e565559f..88f2f68a20b 100644
--- a/gcc/testsuite/gcc.c-torture/execute/pr92618.c
+++ b/gcc/testsuite/gcc.c-torture/execute/pr92618.c
@@ -1,6 +1,6 @@ 
 /* PR tree-optimization/92618 */
 
-typedef long long __m128i __attribute__((__may_alias__, __vector_size__(2 * sizeof (long long))));
+typedef long long __m128i __attribute__((__vector_size__(2 * sizeof (long long)),__may_alias__));
 
 double a[4];
 unsigned long long b[4];
@@ -14,7 +14,7 @@  bar (void)
 }
 
 #if __SIZEOF_LONG_LONG__ == __SIZEOF_DOUBLE__
-typedef double __m128d __attribute__((__may_alias__, __vector_size__(2 * sizeof (double))));
+typedef double __m128d __attribute__((__vector_size__(2 * sizeof (double)),__may_alias__));
 
 __attribute__((noipa)) __m128i
 qux (void)