summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr61925-1.c
blob: 066aae3faafead695c89ff52091a2b1b58062b43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* PR target/61925 */
/* { dg-do compile } */
/* { dg-options "-O2 -w" } */
/* { dg-additional-options "-march=i386 -mno-sse" { target ia32 } } */

#pragma GCC push_options
#pragma GCC target("sse")
typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__));
typedef long long __m128i __attribute__ ((__vector_size__ (16), __may_alias__));
__m128i
bar (__m128 __A)
{
}

#pragma GCC pop_options

__attribute__ ((vector_size (16))) int
foo (__attribute__ ((vector_size (16))) int a, __attribute__ ((vector_size (16))) int b)
{
  return a + b;
}