1 /* { dg-do run { target { bmi2 } } } */
2 /* { dg-options "-mbmi2 -O2 -dp" } */
4 #include "bmi2-check.h"
6 __attribute__((noinline
))
8 calc_shrx_u32 (unsigned a
, int l
)
10 unsigned volatile res
= a
;
12 for (i
= 0; i
< l
; ++i
)
22 unsigned src
= 0xce7ace0;
23 unsigned res
, res_ref
;
25 for (i
= 0; i
< 5; ++i
) {
28 res_ref
= calc_shrx_u32 (src
, i
+ 1);