Skip to content

Commit e8c09a8

Browse files
committed
trying a test case for clzsi2
1 parent 4e3fc64 commit e8c09a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

testcrate/build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,12 @@ fn main() {
775775
(builtins::int::udiv::__udivmodti4(a, b, Some(&mut r)), r)
776776
}");
777777
}
778+
779+
// count leading zeros
780+
gen(|(a): (usize)| {
781+
Some(a.leading_zeros())
782+
},
783+
"builtins::int::__clzsi2(a)");
778784
}
779785

780786
macro_rules! gen_float {

0 commit comments

Comments
 (0)