aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-04-07 13:21:23 +0200
committerRichard Biener <rguenther@suse.de>2021-04-07 13:22:58 +0200
commit0d6ad10c170e3670f0b5e3709e0fa6e76b7065b3 (patch)
treef1e3e89e54d339a6e9fa96a1c5068ffa96767234 /gcc
parentd11bcbe166c03f722c0e0d41d6e87ac445758fba (diff)
downloadgcc-0d6ad10c170e3670f0b5e3709e0fa6e76b7065b3.zip
gcc-0d6ad10c170e3670f0b5e3709e0fa6e76b7065b3.tar.gz
gcc-0d6ad10c170e3670f0b5e3709e0fa6e76b7065b3.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pr92618.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr92618.c b/gcc/testsuite/gcc.c-torture/execute/pr92618.c
index 2a5e565..88f2f68 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)