1 /* { dg-do run { target { lzcnt && { ! ia32 } } } } */
2 /* { dg-options "-O2 -mlzcnt -fno-inline" } */
6 #include "lzcnt-check.h"
8 long long calc_lzcnt_u64 (long long src
)
13 while ((res
< 64) && (((src
>> (63 - res
)) & 1) == 0))
23 long long src
= 0xce7ace0ce7ace0;
24 long long res
, res_ref
;
29 res_ref
= calc_lzcnt_u64 (src
);
30 res
= __lzcnt64 (src
);