1 typedef int __v1si __attribute__ ((__vector_size__ (4)));
2 typedef int __v2si __attribute__ ((__vector_size__ (8)));
3 typedef short __v2hi __attribute__ ((__vector_size__ (4)));
4 typedef short __v4hi __attribute__ ((__vector_size__ (8)));
5 typedef unsigned char __v4qi __attribute__ ((__vector_size__ (4)));
6 typedef unsigned char __v8qi __attribute__ ((__vector_size__ (8)));
8 extern void abort (void);
11 compare64 (void *p, unsigned long long val)
13 if (*(unsigned long long *)p != val)
18 compare32 (void *p, unsigned int val)
20 if (*(unsigned int *)p != val)
25 test_v8qi (unsigned char x)
27 __v8qi v = { x, x, x, x, x, x, x, x };
29 compare64(&v, 0x4444444444444444ULL);
33 test_v4qi (unsigned char x)
35 __v4qi v = { x, x, x, x };
37 compare32(&v, 0x44444444);
41 test_v4hi (unsigned short x)
43 __v4hi v = { x, x, x, x, };
45 compare64(&v, 0x3344334433443344ULL);
49 test_v2hi (unsigned short x)
53 compare32(&v, 0x33443344);
57 test_v2si (unsigned int x)
61 compare64(&v, 0x1122334411223344ULL);
65 test_v1si (unsigned int x)
69 compare32(&v, 0x11223344);
72 unsigned char x8 = 0x44;
73 unsigned short x16 = 0x3344;
74 unsigned int x32 = 0x11223344;