Skip to content
Snippets Groups Projects
Commit 0d6ad10c authored by Richard Biener's avatar Richard Biener
Browse files

testsuite/99955 - fix may_alias declaration of vector

This fixes the order of the type attributes to preserve may_alias
for the vector type.

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

	PR testsuite/99955
	* gcc.c-torture/execute/pr92618.c: Move may_alias attributes
	last.
parent d11bcbe1
No related branches found
No related tags found
No related merge requests found
/* PR tree-optimization/92618 */ /* 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]; double a[4];
unsigned long long b[4]; unsigned long long b[4];
...@@ -14,7 +14,7 @@ bar (void) ...@@ -14,7 +14,7 @@ bar (void)
} }
#if __SIZEOF_LONG_LONG__ == __SIZEOF_DOUBLE__ #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 __attribute__((noipa)) __m128i
qux (void) qux (void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment