blob: bc95372e0c6acd71656a4c7830a598ed4e8c8ed3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <emmintrin.h>
#include <pthread.h>
void foobar(void) __attribute__((constructor));
void *
foo(void *arg)
{
__m128i xmm_alpha;
if ((((unsigned long)&xmm_alpha) & 15) != 0)
exit(1);
}
void
foobar(void)
{
foo(NULL);
}
int
main(void)
{
pthread_t thread;
foo(NULL);
pthread_create(&thread, NULL, foo, NULL);
return 0;
}
|