summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr39315-4.c
blob: 77258a7c76c1deeb426f3904c83be4a179bd8299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR middle-end/39315  */
/* { dg-do run } */
/* { dg-options "-O -msse2 -mtune=generic" } */
/* { dg-require-effective-target sse2_runtime } */
/* { dg-additional-sources pr39315-check.c } */

typedef float __m128 __attribute__ ((__vector_size__ (16)));

extern void bar (__m128 *, int);

void
foo (__m128 *x)
{
  __m128 b __attribute__ ((aligned(128))) = *x;
  bar (&b, __alignof__ (x));
}