1 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 -msse" } */
14 const char test [] = "This is a test.";
16 for (alignment = 1; alignment <= (1 << 20); alignment += alignment)
18 ptr = _mm_malloc (alignment, alignment);
19 if (((ptrdiff_t) ptr) & (alignment - 1))
23 n = alignment > sizeof test ? sizeof test : alignment;
24 memcpy (ptr, test, n);
25 if (memcmp (ptr, test, n) != 0)