1
Fork 0

Add unchecked_disjoint_bitor with fallback intrinsic implementation

This commit is contained in:
Scott McMurray 2025-01-19 23:38:09 -08:00
parent 9e48dfe5e0
commit f23025305f
6 changed files with 118 additions and 4 deletions

View file

@ -472,7 +472,7 @@ pub fn check_intrinsic_type(
vec![Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))],
tcx.types.usize,
),
sym::unchecked_div | sym::unchecked_rem | sym::exact_div => {
sym::unchecked_div | sym::unchecked_rem | sym::exact_div | sym::disjoint_bitor => {
(1, 0, vec![param(0), param(0)], param(0))
}
sym::unchecked_shl | sym::unchecked_shr => (2, 0, vec![param(0), param(1)], param(0)),