2 /* { dg-options "-O1 -msse2 -ftree-vectorize" } */
3 /* { dg-require-effective-target sse2 } */
6 #define CHECK_H "sse2-check.h"
10 #define TEST sse2_test
15 unsigned int v1
[] __attribute__ ((aligned(16))) =
17 0x80000000, 1, 0xa0000000, 2,
18 3, 0xd0000000, 0xf0000000, 0xe0000000
20 unsigned int v2
[] __attribute__ ((aligned(16))) =
22 4, 0xb0000000, 5, 0xc0000000,
28 0x80000000, 0xb0000000, 0xa0000000, 0xc0000000,
29 0xd0000000, 0xd0000000, 0xf0000000, 0xe0000000
38 unsigned int res
[8] __attribute__ ((aligned(16)));
40 extern void abort (void);
47 for (i
= 0; i
< 8; i
++)
48 res
[i
] = v1
[i
] < v2
[i
] ? v2
[i
] : v1
[i
];
56 for (i
= 0; i
< 8; i
++)
57 res
[i
] = v1
[i
] > v2
[i
] ? v2
[i
] : v1
[i
];
67 for (i
= 0; i
< 8; i
++)
72 for (i
= 0; i
< 8; i
++)