PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr39315-check.c
blobcb09d3f2be5a845cd7daf3298c9ab4f88547717c
1 /* { dg-do compile } */
3 typedef float __m128 __attribute__ ((__vector_size__ (16)));
4 __extension__ typedef __PTRDIFF_TYPE__ ptrdiff_t;
6 extern void foo (__m128 *);
7 extern void abort (void);
9 __m128 y = { 0.0, 1.0, 2.0, 3.0 };
11 void
12 bar (__m128 *x, int align)
14 if ((((ptrdiff_t) x) & (align - 1)) != 0)
15 abort ();
16 if (__builtin_memcmp (x, &y, sizeof (y)) != 0)
17 abort ();
20 int
21 main ()
23 foo (&y);
24 return 0;