Add round_ties_even to f32 and f64

This commit is contained in:
Jules Bertholet 2022-03-25 02:44:16 -04:00 committed by Jules Bertholet
parent e1c91213ff
commit be681fefed
No known key found for this signature in database
GPG key ID: 32034DAFC38C1BFC
12 changed files with 127 additions and 0 deletions

View file

@ -300,6 +300,8 @@ pub fn check_intrinsic_type(tcx: TyCtxt<'_>, it: &hir::ForeignItem<'_>) {
sym::nearbyintf64 => (0, vec![tcx.types.f64], tcx.types.f64),
sym::roundf32 => (0, vec![tcx.types.f32], tcx.types.f32),
sym::roundf64 => (0, vec![tcx.types.f64], tcx.types.f64),
sym::roundevenf32 => (0, vec![tcx.types.f32], tcx.types.f32),
sym::roundevenf64 => (0, vec![tcx.types.f64], tcx.types.f64),
sym::volatile_load | sym::unaligned_volatile_load => {
(1, vec![tcx.mk_imm_ptr(param(0))], param(0))