2 /* { dg-require-effective-target sse4 } */
3 /* { dg-options "-O2 -msse4.1" } */
6 #define CHECK_H "sse4_1-check.h"
10 #define TEST sse4_1_test
15 #include <smmintrin.h>
25 unsigned short i
[NUM
];
30 for (i
= 0; i
< NUM
; i
++)
38 for (i
= 0; i
< NUM
; i
+= 8)
39 dst
.x
[i
/ 8] = _mm_max_epu16 (src1
.x
[i
/ 8], src2
.x
[i
/ 8]);
41 for (i
= 0; i
< NUM
; i
++)
43 max
= src1
.i
[i
] <= src2
.i
[i
] ? src2
.i
[i
] : src1
.i
[i
];