1 /* { dg-additional-options "-msse4" { target sse4_runtime } } */
10 vfoo32 (unsigned int* a
)
13 for (i
= 0; i
< N
; ++i
)
14 a
[i
] = __builtin_bswap32 (a
[i
]);
21 unsigned int expect
[N
];
26 for (i
= 0; i
< N
; ++i
)
29 expect
[i
] = __builtin_bswap32 (i
);
30 if (y
) /* Avoid vectorisation. */
36 for (i
= 0; i
< N
; ++i
)
38 if (arr
[i
] != expect
[i
])
45 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_bswap || sse4_runtime } } } } */