1 #include <emmintrin.h>
2 
main()3 int main()
4 {
5     __m64 *p;
6     __m128 *q;
7     int p_isaligned, q_isaligned;
8     p = _mm_malloc(7*sizeof(*p),sizeof(*p));
9     q = _mm_malloc(5*sizeof(*q),sizeof(*q));
10     p_isaligned = ((int)p % sizeof(*p)) == 0;
11     q_isaligned = ((int)q % sizeof(*q)) == 0;
12     free(p);
13     free(q);
14     return (p_isaligned && q_isaligned)? 0 : 1;
15 }
16