Skip to main content

rustc_hir_analysis/check/
intrinsic.rs

1//! Type-checking for the `#[rustc_intrinsic]` intrinsics that the compiler exposes.
2
3use rustc_errors::DiagMessage;
4use rustc_hir as hir;
5use rustc_hir::attrs::lang_items::LangItem;
6use rustc_middle::traits::{ObligationCause, ObligationCauseCode};
7use rustc_middle::ty::{self, Const, Ty, TyCtxt};
8use rustc_span::def_id::LocalDefId;
9use rustc_span::{Span, Symbol, sym};
10
11use crate::check::check_function_signature;
12use crate::diagnostics::{UnrecognizedIntrinsicFunction, WrongNumberOfGenericArgumentsToIntrinsic};
13
14fn equate_intrinsic_type<'tcx>(
15    tcx: TyCtxt<'tcx>,
16    span: Span,
17    def_id: LocalDefId,
18    n_tps: usize,
19    n_lts: usize,
20    n_cts: usize,
21    sig: ty::PolyFnSig<'tcx>,
22) {
23    let (generics, span) = match tcx.hir_node_by_def_id(def_id) {
24        hir::Node::Item(hir::Item { kind: hir::ItemKind::Fn { generics, .. }, .. }) => {
25            (tcx.generics_of(def_id), generics.span)
26        }
27        _ => tcx.dcx().span_bug(span, "intrinsic must be a function"),
28    };
29    let own_counts = generics.own_counts();
30
31    let gen_count_ok = |found: usize, expected: usize, descr: &str| -> bool {
32        if found != expected {
33            tcx.dcx().emit_err(WrongNumberOfGenericArgumentsToIntrinsic {
34                span,
35                found,
36                expected,
37                descr,
38            });
39            false
40        } else {
41            true
42        }
43    };
44
45    // the host effect param should be invisible as it shouldn't matter
46    // whether effects is enabled for the intrinsic provider crate.
47    if gen_count_ok(own_counts.lifetimes, n_lts, "lifetime")
48        && gen_count_ok(own_counts.types, n_tps, "type")
49        && gen_count_ok(own_counts.consts, n_cts, "const")
50    {
51        let _ = check_function_signature(
52            tcx,
53            ObligationCause::new(span, def_id, ObligationCauseCode::IntrinsicType),
54            def_id.into(),
55            sig,
56        );
57    }
58}
59
60/// Returns the unsafety of the given intrinsic.
61fn intrinsic_operation_unsafety(tcx: TyCtxt<'_>, intrinsic_id: LocalDefId) -> hir::Safety {
62    let is_in_list = match tcx.item_name(intrinsic_id) {
63        // When adding a new intrinsic to this list,
64        // it's usually worth updating that intrinsic's documentation
65        // to note that it's safe to call, since
66        // safe extern fns are otherwise unprecedented.
67
68        // tidy-alphabetical-start
69        | sym::abort
70        | sym::add_with_overflow
71        | sym::aggregate_raw_ptr
72        | sym::align_of
73        | sym::amdgpu_dispatch_ptr
74        | sym::assert_inhabited
75        | sym::assert_mem_uninitialized_valid
76        | sym::assert_zero_valid
77        | sym::autodiff
78        | sym::bitreverse
79        | sym::black_box
80        | sym::breakpoint
81        | sym::bswap
82        | sym::caller_location
83        | sym::carrying_mul_add
84        | sym::carryless_mul
85        | sym::ceilf16
86        | sym::ceilf32
87        | sym::ceilf64
88        | sym::ceilf128
89        | sym::cold_path
90        | sym::const_eval_select
91        | sym::contract_check_ensures
92        | sym::contract_check_requires
93        | sym::contract_checks
94        | sym::copysignf16
95        | sym::copysignf32
96        | sym::copysignf64
97        | sym::copysignf128
98        | sym::cosf16
99        | sym::cosf32
100        | sym::cosf64
101        | sym::cosf128
102        | sym::ctlz
103        | sym::ctpop
104        | sym::cttz
105        | sym::discriminant_value
106        | sym::exp2f16
107        | sym::exp2f32
108        | sym::exp2f64
109        | sym::exp2f128
110        | sym::expf16
111        | sym::expf32
112        | sym::expf64
113        | sym::expf128
114        | sym::fabs
115        | sym::fadd_algebraic
116        | sym::fdiv_algebraic
117        | sym::field_offset
118        | sym::field_representing_type_actual_type_id
119        | sym::field_representing_type_name
120        | sym::field_representing_type_offset
121        | sym::floorf16
122        | sym::floorf32
123        | sym::floorf64
124        | sym::floorf128
125        | sym::fmaf16
126        | sym::fmaf32
127        | sym::fmaf64
128        | sym::fmaf128
129        | sym::fmul_algebraic
130        | sym::fmuladdf16
131        | sym::fmuladdf32
132        | sym::fmuladdf64
133        | sym::fmuladdf128
134        | sym::forget
135        | sym::frem_algebraic
136        | sym::fsub_algebraic
137        | sym::gpu_launch_sized_workgroup_mem
138        | sym::is_val_statically_known
139        | sym::log2f16
140        | sym::log2f32
141        | sym::log2f64
142        | sym::log2f128
143        | sym::log10f16
144        | sym::log10f32
145        | sym::log10f64
146        | sym::log10f128
147        | sym::logf16
148        | sym::logf32
149        | sym::logf64
150        | sym::logf128
151        | sym::maximum_number_nsz_f16
152        | sym::maximum_number_nsz_f32
153        | sym::maximum_number_nsz_f64
154        | sym::maximum_number_nsz_f128
155        | sym::maximumf16
156        | sym::maximumf32
157        | sym::maximumf64
158        | sym::maximumf128
159        | sym::minimum_number_nsz_f16
160        | sym::minimum_number_nsz_f32
161        | sym::minimum_number_nsz_f64
162        | sym::minimum_number_nsz_f128
163        | sym::minimumf16
164        | sym::minimumf32
165        | sym::minimumf64
166        | sym::minimumf128
167        | sym::mul_with_overflow
168        | sym::needs_drop
169        | sym::non_exhaustive
170        | sym::offload
171        | sym::offset_of
172        | sym::overflow_checks
173        | sym::powf16
174        | sym::powf32
175        | sym::powf64
176        | sym::powf128
177        | sym::powif16
178        | sym::powif32
179        | sym::powif64
180        | sym::powif128
181        | sym::prefetch_read_data
182        | sym::prefetch_read_instruction
183        | sym::prefetch_write_data
184        | sym::prefetch_write_instruction
185        | sym::ptr_guaranteed_cmp
186        | sym::ptr_mask
187        | sym::ptr_metadata
188        | sym::return_address
189        | sym::rotate_left
190        | sym::rotate_right
191        | sym::round_ties_even_f16
192        | sym::round_ties_even_f32
193        | sym::round_ties_even_f64
194        | sym::round_ties_even_f128
195        | sym::roundf16
196        | sym::roundf32
197        | sym::roundf64
198        | sym::roundf128
199        | sym::rustc_peek
200        | sym::saturating_add
201        | sym::saturating_sub
202        | sym::select_unpredictable
203        | sym::sinf16
204        | sym::sinf32
205        | sym::sinf64
206        | sym::sinf128
207        | sym::size_of
208        | sym::size_of_type_id
209        | sym::sqrtf16
210        | sym::sqrtf32
211        | sym::sqrtf64
212        | sym::sqrtf128
213        | sym::sub_with_overflow
214        | sym::three_way_compare
215        | sym::truncf16
216        | sym::truncf32
217        | sym::truncf64
218        | sym::truncf128
219        | sym::type_id
220        | sym::type_id_eq
221        | sym::type_id_field_representing_type
222        | sym::type_id_fields
223        | sym::type_id_generics
224        | sym::type_id_variants
225        | sym::type_id_vtable
226        | sym::type_name
227        | sym::type_of
228        | sym::ub_checks
229        | sym::va_copy
230        | sym::variant_count
231        | sym::wrapping_add
232        | sym::wrapping_mul
233        | sym::wrapping_sub
234        | sym::write_box_via_move
235        // tidy-alphabetical-end
236        => hir::Safety::Safe,
237        _ => hir::Safety::Unsafe,
238    };
239
240    if tcx.fn_sig(intrinsic_id).skip_binder().safety() != is_in_list {
241        tcx.dcx().struct_span_err(
242            tcx.def_span(intrinsic_id),
243            DiagMessage::from(::alloc::__export::must_use({
        ::alloc::fmt::format(format_args!("intrinsic safety mismatch between list of intrinsics within the compiler and core library intrinsics for intrinsic `{0}`",
                tcx.item_name(intrinsic_id)))
    })format!(
244                "intrinsic safety mismatch between list of intrinsics within the compiler and core library intrinsics for intrinsic `{}`",
245                tcx.item_name(intrinsic_id)
246            )
247        )).emit();
248    }
249
250    is_in_list
251}
252
253/// Remember to add all intrinsics here, in `compiler/rustc_codegen_llvm/src/intrinsic.rs`,
254/// and in `library/core/src/intrinsics.rs`.
255pub(crate) fn check_intrinsic_type(
256    tcx: TyCtxt<'_>,
257    intrinsic_id: LocalDefId,
258    span: Span,
259    intrinsic_name: Symbol,
260) {
261    let generics = tcx.generics_of(intrinsic_id);
262    let param = |n| {
263        if let &ty::GenericParamDef { name, kind: ty::GenericParamDefKind::Type { .. }, .. } =
264            generics.param_at(n as usize, tcx)
265        {
266            Ty::new_param(tcx, n, name)
267        } else {
268            Ty::new_error_with_message(tcx, span, "expected param")
269        }
270    };
271
272    let bound_vars = tcx.mk_bound_variable_kinds(&[
273        ty::BoundVariableKind::Region(ty::BoundRegionKind::Anon),
274        ty::BoundVariableKind::Region(ty::BoundRegionKind::Anon),
275        ty::BoundVariableKind::Region(ty::BoundRegionKind::ClosureEnv),
276    ]);
277    let mk_va_list_ty = |mutbl| {
278        let did = tcx.require_lang_item(LangItem::VaList, span);
279        let region = ty::Region::new_bound(
280            tcx,
281            ty::INNERMOST,
282            ty::BoundRegion { var: ty::BoundVar::ZERO, kind: ty::BoundRegionKind::Anon },
283        );
284        let env_region = ty::Region::new_bound(
285            tcx,
286            ty::INNERMOST,
287            ty::BoundRegion {
288                var: ty::BoundVar::from_u32(2),
289                kind: ty::BoundRegionKind::ClosureEnv,
290            },
291        );
292        let va_list_ty = tcx.type_of(did).instantiate(tcx, &[region.into()]).skip_norm_wip();
293        (Ty::new_ref(tcx, env_region, va_list_ty, mutbl), va_list_ty)
294    };
295    let type_id_ty = || tcx.type_of(tcx.lang_items().type_id().unwrap()).no_bound_vars().unwrap();
296
297    let safety = intrinsic_operation_unsafety(tcx, intrinsic_id);
298    let n_lts = 0;
299    let (n_tps, n_cts, inputs, output) = match intrinsic_name {
300        sym::autodiff => (4, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], param(3)),
301        sym::abort => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.never),
302        sym::amdgpu_dispatch_ptr => (0, 0, ::alloc::vec::Vec::new()vec![], Ty::new_imm_ptr(tcx, tcx.types.unit)),
303        sym::unreachable => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.never),
304        sym::breakpoint => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.unit),
305        sym::size_of | sym::align_of | sym::variant_count => (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.usize),
306        sym::size_of_val | sym::align_of_val => {
307            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], tcx.types.usize)
308        }
309        sym::size_of_type_id => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()], Ty::new_option(tcx, tcx.types.usize)),
310        sym::offset_of => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.u32, tcx.types.u32]))vec![tcx.types.u32, tcx.types.u32], tcx.types.usize),
311        sym::field_offset => (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.usize),
312        sym::rustc_peek => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(0)),
313        sym::caller_location => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.caller_location_ty()),
314        sym::gpu_launch_sized_workgroup_mem => (1, 0, ::alloc::vec::Vec::new()vec![], Ty::new_mut_ptr(tcx, param(0))),
315        sym::assert_inhabited | sym::assert_zero_valid | sym::assert_mem_uninitialized_valid => {
316            (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.unit)
317        }
318        sym::forget => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], tcx.types.unit),
319        sym::transmute | sym::transmute_unchecked => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(1)),
320        sym::prefetch_read_data
321        | sym::prefetch_write_data
322        | sym::prefetch_read_instruction
323        | sym::prefetch_write_instruction => {
324            (1, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], tcx.types.unit)
325        }
326        sym::needs_drop => (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.bool),
327
328        sym::type_name => (1, 0, ::alloc::vec::Vec::new()vec![], Ty::new_static_str(tcx)),
329        sym::type_id => (1, 0, ::alloc::vec::Vec::new()vec![], type_id_ty()),
330        sym::type_id_eq => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty(), type_id_ty()]))vec![type_id_ty(), type_id_ty()], tcx.types.bool),
331        sym::type_id_field_representing_type => {
332            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty(), tcx.types.usize, tcx.types.usize]))vec![type_id_ty(), tcx.types.usize, tcx.types.usize], type_id_ty())
333        }
334        sym::type_id_fields => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty(), tcx.types.usize]))vec![type_id_ty(), tcx.types.usize], tcx.types.usize),
335        sym::type_id_variants => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()], tcx.types.usize),
336        sym::type_id_vtable => {
337            let dyn_metadata = tcx.require_lang_item(LangItem::DynMetadata, span);
338            let dyn_metadata_adt_ref = tcx.adt_def(dyn_metadata);
339            let dyn_metadata_args =
340                tcx.mk_args(&[Ty::new_ptr(tcx, tcx.types.unit, ty::Mutability::Not).into()]);
341            let dyn_ty = Ty::new_adt(tcx, dyn_metadata_adt_ref, dyn_metadata_args);
342
343            let option_did = tcx.require_lang_item(LangItem::Option, span);
344            let option_adt_ref = tcx.adt_def(option_did);
345            let option_args = tcx.mk_args(&[dyn_ty.into()]);
346            let ret_ty = Ty::new_adt(tcx, option_adt_ref, option_args);
347
348            (0, 0, ::alloc::vec::from_elem(type_id_ty(), 2)vec![type_id_ty(); 2], ret_ty)
349        }
350        sym::type_of => (
351            0,
352            0,
353            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()],
354            tcx.type_of(tcx.lang_items().type_struct().unwrap()).no_bound_vars().unwrap(),
355        ),
356        sym::field_representing_type_actual_type_id => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()], type_id_ty()),
357        sym::field_representing_type_name => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()], Ty::new_static_str(tcx)),
358        sym::field_representing_type_offset => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()], tcx.types.usize),
359        sym::non_exhaustive => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()], tcx.types.bool),
360        sym::type_id_generics => (
361            0,
362            0,
363            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()],
364            Ty::new_imm_ref(
365                tcx,
366                tcx.lifetimes.re_static,
367                Ty::new_slice(
368                    tcx,
369                    tcx.type_of(tcx.lang_items().type_generic().unwrap()).no_bound_vars().unwrap(),
370                ),
371            ),
372        ),
373        sym::offload => (
374            3,
375            0,
376            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0),
                Ty::new_array_with_const_len(tcx, tcx.types.u32,
                    Const::from_target_usize(tcx, 3)),
                Ty::new_array_with_const_len(tcx, tcx.types.u32,
                    Const::from_target_usize(tcx, 3)), tcx.types.u32,
                param(1)]))vec![
377                param(0),
378                Ty::new_array_with_const_len(tcx, tcx.types.u32, Const::from_target_usize(tcx, 3)),
379                Ty::new_array_with_const_len(tcx, tcx.types.u32, Const::from_target_usize(tcx, 3)),
380                tcx.types.u32,
381                param(1),
382            ],
383            param(2),
384        ),
385        sym::offset => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1)]))vec![param(0), param(1)], param(0)),
386        sym::arith_offset => (
387            1,
388            0,
389            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0)), tcx.types.isize]))vec![Ty::new_imm_ptr(tcx, param(0)), tcx.types.isize],
390            Ty::new_imm_ptr(tcx, param(0)),
391        ),
392        sym::slice_get_unchecked => (3, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(1), tcx.types.usize]))vec![param(1), tcx.types.usize], param(0)),
393        sym::ptr_mask => (
394            1,
395            0,
396            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0)), tcx.types.usize]))vec![Ty::new_imm_ptr(tcx, param(0)), tcx.types.usize],
397            Ty::new_imm_ptr(tcx, param(0)),
398        ),
399
400        sym::copy | sym::copy_nonoverlapping => (
401            1,
402            0,
403            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0)), Ty::new_mut_ptr(tcx, param(0)),
                tcx.types.usize]))vec![Ty::new_imm_ptr(tcx, param(0)), Ty::new_mut_ptr(tcx, param(0)), tcx.types.usize],
404            tcx.types.unit,
405        ),
406        sym::volatile_copy_memory | sym::volatile_copy_nonoverlapping_memory => (
407            1,
408            0,
409            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0)),
                tcx.types.usize]))vec![Ty::new_mut_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0)), tcx.types.usize],
410            tcx.types.unit,
411        ),
412        sym::compare_bytes => {
413            let byte_ptr = Ty::new_imm_ptr(tcx, tcx.types.u8);
414            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [byte_ptr, byte_ptr, tcx.types.usize]))vec![byte_ptr, byte_ptr, tcx.types.usize], tcx.types.i32)
415        }
416        sym::write_bytes | sym::volatile_set_memory => (
417            1,
418            0,
419            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), tcx.types.u8, tcx.types.usize]))vec![Ty::new_mut_ptr(tcx, param(0)), tcx.types.u8, tcx.types.usize],
420            tcx.types.unit,
421        ),
422
423        sym::sqrtf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
424        sym::sqrtf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
425        sym::sqrtf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
426        sym::sqrtf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
427
428        sym::powif16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.i32]))vec![tcx.types.f16, tcx.types.i32], tcx.types.f16),
429        sym::powif32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.i32]))vec![tcx.types.f32, tcx.types.i32], tcx.types.f32),
430        sym::powif64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.i32]))vec![tcx.types.f64, tcx.types.i32], tcx.types.f64),
431        sym::powif128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.i32]))vec![tcx.types.f128, tcx.types.i32], tcx.types.f128),
432
433        sym::sinf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
434        sym::sinf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
435        sym::sinf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
436        sym::sinf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
437
438        sym::cosf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
439        sym::cosf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
440        sym::cosf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
441        sym::cosf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
442
443        sym::powf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
444        sym::powf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
445        sym::powf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
446        sym::powf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128),
447
448        sym::expf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
449        sym::expf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
450        sym::expf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
451        sym::expf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
452
453        sym::exp2f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
454        sym::exp2f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
455        sym::exp2f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
456        sym::exp2f128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
457
458        sym::logf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
459        sym::logf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
460        sym::logf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
461        sym::logf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
462
463        sym::log10f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
464        sym::log10f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
465        sym::log10f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
466        sym::log10f128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
467
468        sym::log2f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
469        sym::log2f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
470        sym::log2f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
471        sym::log2f128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
472
473        sym::fmaf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16, tcx.types.f16], tcx.types.f16),
474        sym::fmaf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32, tcx.types.f32], tcx.types.f32),
475        sym::fmaf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64, tcx.types.f64], tcx.types.f64),
476        sym::fmaf128 => {
477            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128, tcx.types.f128], tcx.types.f128)
478        }
479
480        sym::fmuladdf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16, tcx.types.f16], tcx.types.f16),
481        sym::fmuladdf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32, tcx.types.f32], tcx.types.f32),
482        sym::fmuladdf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64, tcx.types.f64], tcx.types.f64),
483        sym::fmuladdf128 => {
484            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128, tcx.types.f128], tcx.types.f128)
485        }
486
487        sym::fabs => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(0)),
488
489        sym::minimum_number_nsz_f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
490        sym::minimum_number_nsz_f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
491        sym::minimum_number_nsz_f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
492        sym::minimum_number_nsz_f128 => {
493            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128)
494        }
495
496        sym::minimumf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
497        sym::minimumf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
498        sym::minimumf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
499        sym::minimumf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128),
500
501        sym::maximum_number_nsz_f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
502        sym::maximum_number_nsz_f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
503        sym::maximum_number_nsz_f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
504        sym::maximum_number_nsz_f128 => {
505            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128)
506        }
507
508        sym::maximumf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
509        sym::maximumf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
510        sym::maximumf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
511        sym::maximumf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128),
512
513        sym::copysignf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
514        sym::copysignf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
515        sym::copysignf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
516        sym::copysignf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128),
517
518        sym::floorf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
519        sym::floorf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
520        sym::floorf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
521        sym::floorf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
522
523        sym::ceilf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
524        sym::ceilf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
525        sym::ceilf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
526        sym::ceilf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
527
528        sym::truncf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
529        sym::truncf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
530        sym::truncf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
531        sym::truncf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
532
533        sym::round_ties_even_f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
534        sym::round_ties_even_f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
535        sym::round_ties_even_f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
536        sym::round_ties_even_f128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
537
538        sym::roundf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
539        sym::roundf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
540        sym::roundf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
541        sym::roundf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
542
543        sym::volatile_load | sym::unaligned_volatile_load => {
544            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], param(0))
545        }
546        sym::volatile_store | sym::unaligned_volatile_store => {
547            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], tcx.types.unit)
548        }
549
550        sym::ctpop | sym::ctlz | sym::ctlz_nonzero | sym::cttz | sym::cttz_nonzero => {
551            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], tcx.types.u32)
552        }
553
554        sym::bswap | sym::bitreverse => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(0)),
555
556        sym::three_way_compare => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], tcx.ty_ordering_enum(span)),
557
558        sym::add_with_overflow | sym::sub_with_overflow | sym::mul_with_overflow => {
559            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], Ty::new_tup(tcx, &[param(0), tcx.types.bool]))
560        }
561
562        sym::carrying_mul_add => (2, 0, ::alloc::vec::from_elem(param(0), 4)vec![param(0); 4], Ty::new_tup(tcx, &[param(1), param(0)])),
563
564        sym::ptr_guaranteed_cmp => (
565            1,
566            0,
567            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))],
568            tcx.types.u8,
569        ),
570
571        sym::const_allocate => {
572            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.usize, tcx.types.usize]))vec![tcx.types.usize, tcx.types.usize], Ty::new_mut_ptr(tcx, tcx.types.u8))
573        }
574        sym::const_deallocate => (
575            0,
576            0,
577            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, tcx.types.u8), tcx.types.usize,
                tcx.types.usize]))vec![Ty::new_mut_ptr(tcx, tcx.types.u8), tcx.types.usize, tcx.types.usize],
578            tcx.types.unit,
579        ),
580        sym::const_make_global => {
581            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, tcx.types.u8)]))vec![Ty::new_mut_ptr(tcx, tcx.types.u8)], Ty::new_imm_ptr(tcx, tcx.types.u8))
582        }
583
584        sym::ptr_offset_from => (
585            1,
586            0,
587            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))],
588            tcx.types.isize,
589        ),
590        sym::ptr_offset_from_unsigned => (
591            1,
592            0,
593            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))],
594            tcx.types.usize,
595        ),
596        sym::unchecked_div | sym::unchecked_rem | sym::exact_div | sym::disjoint_bitor => {
597            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0))
598        }
599        sym::unchecked_shl | sym::unchecked_shr => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1)]))vec![param(0), param(1)], param(0)),
600        sym::rotate_left | sym::rotate_right => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), tcx.types.u32]))vec![param(0), tcx.types.u32], param(0)),
601        sym::unchecked_funnel_shl | sym::unchecked_funnel_shr => {
602            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0), tcx.types.u32]))vec![param(0), param(0), tcx.types.u32], param(0))
603        }
604        sym::unchecked_add | sym::unchecked_sub | sym::unchecked_mul => {
605            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0))
606        }
607        sym::wrapping_add | sym::wrapping_sub | sym::wrapping_mul => {
608            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0))
609        }
610        sym::saturating_add | sym::saturating_sub => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0)),
611        sym::carryless_mul => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0)),
612        sym::fadd_fast | sym::fsub_fast | sym::fmul_fast | sym::fdiv_fast | sym::frem_fast => {
613            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0))
614        }
615        sym::fadd_algebraic
616        | sym::fsub_algebraic
617        | sym::fmul_algebraic
618        | sym::fdiv_algebraic
619        | sym::frem_algebraic => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0)),
620        sym::float_to_int_unchecked => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(1)),
621
622        sym::assume => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.bool]))vec![tcx.types.bool], tcx.types.unit),
623        sym::select_unpredictable => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.bool, param(0), param(0)]))vec![tcx.types.bool, param(0), param(0)], param(0)),
624        sym::cold_path => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.unit),
625
626        sym::read_via_copy => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], param(0)),
627        sym::write_via_move => {
628            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], tcx.types.unit)
629        }
630        sym::write_box_via_move => {
631            let t = param(0);
632            let maybe_uninit_t = Ty::new_maybe_uninit(tcx, t);
633            let box_mu_t = Ty::new_box(tcx, maybe_uninit_t);
634
635            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [box_mu_t, param(0)]))vec![box_mu_t, param(0)], box_mu_t)
636        }
637
638        sym::typed_swap_nonoverlapping => {
639            (1, 0, ::alloc::vec::from_elem(Ty::new_mut_ptr(tcx, param(0)), 2)vec![Ty::new_mut_ptr(tcx, param(0)); 2], tcx.types.unit)
640        }
641
642        sym::discriminant_value => {
643            let assoc_items = tcx
644                .associated_item_def_ids(tcx.require_lang_item(LangItem::DiscriminantKind, span));
645            let discriminant_def_id = assoc_items[0];
646
647            let br = ty::BoundRegion { var: ty::BoundVar::ZERO, kind: ty::BoundRegionKind::Anon };
648            (
649                1,
650                0,
651                ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ref(tcx, ty::Region::new_bound(tcx, ty::INNERMOST, br),
                    param(0))]))vec![Ty::new_imm_ref(tcx, ty::Region::new_bound(tcx, ty::INNERMOST, br), param(0))],
652                Ty::new_projection_from_args(
653                    tcx,
654                    ty::IsRigid::No,
655                    discriminant_def_id,
656                    tcx.mk_args(&[param(0).into()]),
657                ),
658            )
659        }
660
661        sym::catch_unwind => {
662            let mut_data = Ty::new_mut_ptr(tcx, param(0));
663            let mut_u8 = Ty::new_mut_ptr(tcx, tcx.types.u8);
664            let try_fn_ty =
665                ty::Binder::dummy(tcx.mk_fn_sig_unsafe_rust_abi([mut_data], tcx.types.unit));
666            let catch_fn_ty = ty::Binder::dummy(
667                tcx.mk_fn_sig_unsafe_rust_abi([mut_data, mut_u8], tcx.types.unit),
668            );
669            (
670                1,
671                0,
672                ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_fn_ptr(tcx, try_fn_ty), mut_data,
                Ty::new_fn_ptr(tcx, catch_fn_ty)]))vec![Ty::new_fn_ptr(tcx, try_fn_ty), mut_data, Ty::new_fn_ptr(tcx, catch_fn_ty)],
673                tcx.types.bool,
674            )
675        }
676
677        sym::va_copy => {
678            let (va_list_ref_ty, va_list_ty) = mk_va_list_ty(hir::Mutability::Not);
679            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [va_list_ref_ty]))vec![va_list_ref_ty], va_list_ty)
680        }
681
682        sym::va_end => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [mk_va_list_ty(hir::Mutability::Mut).0]))vec![mk_va_list_ty(hir::Mutability::Mut).0], tcx.types.unit),
683
684        sym::va_arg => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [mk_va_list_ty(hir::Mutability::Mut).0]))vec![mk_va_list_ty(hir::Mutability::Mut).0], param(0)),
685
686        sym::nontemporal_store => {
687            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], tcx.types.unit)
688        }
689
690        sym::raw_eq => {
691            let br = ty::BoundRegion { var: ty::BoundVar::ZERO, kind: ty::BoundRegionKind::Anon };
692            let param_ty_lhs =
693                Ty::new_imm_ref(tcx, ty::Region::new_bound(tcx, ty::INNERMOST, br), param(0));
694            let br =
695                ty::BoundRegion { var: ty::BoundVar::from_u32(1), kind: ty::BoundRegionKind::Anon };
696            let param_ty_rhs =
697                Ty::new_imm_ref(tcx, ty::Region::new_bound(tcx, ty::INNERMOST, br), param(0));
698            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param_ty_lhs, param_ty_rhs]))vec![param_ty_lhs, param_ty_rhs], tcx.types.bool)
699        }
700
701        sym::black_box => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(0)),
702
703        sym::is_val_statically_known => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], tcx.types.bool),
704
705        sym::const_eval_select => (4, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], param(3)),
706
707        sym::vtable_size | sym::vtable_align => {
708            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, tcx.types.unit)]))vec![Ty::new_imm_ptr(tcx, tcx.types.unit)], tcx.types.usize)
709        }
710
711        // This type check is not particularly useful, but the `where` bounds
712        // on the definition in `core` do the heavy lifting for checking it.
713        sym::aggregate_raw_ptr => (3, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(1), param(2)]))vec![param(1), param(2)], param(0)),
714        sym::ptr_metadata => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], param(1)),
715
716        sym::ub_checks | sym::overflow_checks => (0, 0, Vec::new(), tcx.types.bool),
717
718        // contract_check_requires::<C>(C) -> bool, where C: impl Fn() -> bool
719        sym::contract_check_requires => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], tcx.types.unit),
720        sym::contract_check_ensures => {
721            (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_option(tcx, param(0)), param(1)]))vec![Ty::new_option(tcx, param(0)), param(1)], param(1))
722        }
723
724        sym::simd_eq | sym::simd_ne | sym::simd_lt | sym::simd_le | sym::simd_gt | sym::simd_ge => {
725            (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(1))
726        }
727        sym::simd_add
728        | sym::simd_sub
729        | sym::simd_mul
730        | sym::simd_rem
731        | sym::simd_div
732        | sym::simd_shl
733        | sym::simd_shr
734        | sym::simd_and
735        | sym::simd_or
736        | sym::simd_xor
737        | sym::simd_minimum_number_nsz
738        | sym::simd_maximum_number_nsz
739        | sym::simd_saturating_add
740        | sym::simd_saturating_sub
741        | sym::simd_carryless_mul => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0)),
742        sym::simd_arith_offset => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1)]))vec![param(0), param(1)], param(0)),
743        sym::simd_neg
744        | sym::simd_bswap
745        | sym::simd_bitreverse
746        | sym::simd_ctlz
747        | sym::simd_cttz
748        | sym::simd_ctpop
749        | sym::simd_fsqrt
750        | sym::simd_fsin
751        | sym::simd_fcos
752        | sym::simd_fexp
753        | sym::simd_fexp2
754        | sym::simd_flog2
755        | sym::simd_flog10
756        | sym::simd_flog
757        | sym::simd_fabs
758        | sym::simd_ceil
759        | sym::simd_floor
760        | sym::simd_round
761        | sym::simd_round_ties_even
762        | sym::simd_trunc => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(0)),
763        sym::simd_fma | sym::simd_relaxed_fma | sym::simd_funnel_shl | sym::simd_funnel_shr => {
764            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0), param(0)]))vec![param(0), param(0), param(0)], param(0))
765        }
766        sym::simd_gather => (3, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], param(0)),
767        sym::simd_masked_load => (3, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], param(2)),
768        sym::simd_masked_store => (3, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], tcx.types.unit),
769        sym::simd_scatter => (3, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], tcx.types.unit),
770        sym::simd_insert | sym::simd_insert_dyn => {
771            (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), tcx.types.u32, param(1)]))vec![param(0), tcx.types.u32, param(1)], param(0))
772        }
773        sym::simd_extract | sym::simd_extract_dyn => {
774            (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), tcx.types.u32]))vec![param(0), tcx.types.u32], param(1))
775        }
776        sym::simd_splat => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(1)]))vec![param(1)], param(0)),
777        sym::simd_cast
778        | sym::simd_as
779        | sym::simd_cast_ptr
780        | sym::simd_expose_provenance
781        | sym::simd_with_exposed_provenance => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(1)),
782        sym::simd_bitmask => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(1)),
783        sym::simd_select | sym::simd_select_bitmask => {
784            (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1), param(1)]))vec![param(0), param(1), param(1)], param(1))
785        }
786        sym::simd_reduce_all | sym::simd_reduce_any => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], tcx.types.bool),
787        sym::simd_reduce_add_ordered | sym::simd_reduce_mul_ordered => {
788            (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1)]))vec![param(0), param(1)], param(1))
789        }
790        sym::simd_reduce_add_unordered
791        | sym::simd_reduce_mul_unordered
792        | sym::simd_reduce_and
793        | sym::simd_reduce_or
794        | sym::simd_reduce_xor
795        | sym::simd_reduce_min
796        | sym::simd_reduce_max => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(1)),
797        sym::simd_shuffle => (3, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0), param(1)]))vec![param(0), param(0), param(1)], param(2)),
798        sym::simd_shuffle_const_generic => (2, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(1)),
799
800        sym::sve_cast => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(1)),
801        sym::sve_tuple_create2 => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(1)),
802        sym::sve_tuple_create3 => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0), param(0)]))vec![param(0), param(0), param(0)], param(1)),
803        sym::sve_tuple_create4 => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0), param(0), param(0)]))vec![param(0), param(0), param(0), param(0)], param(1)),
804        sym::sve_tuple_get => (2, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(1)),
805        sym::sve_tuple_set => (2, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1)]))vec![param(0), param(1)], param(0)),
806
807        sym::atomic_cxchg | sym::atomic_cxchgweak => (
808            1,
809            2,
810            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), param(0), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0), param(0)],
811            Ty::new_tup(tcx, &[param(0), tcx.types.bool]),
812        ),
813        sym::atomic_load => (1, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], param(0)),
814        sym::atomic_store => (1, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], tcx.types.unit),
815
816        sym::atomic_xchg
817        | sym::atomic_max
818        | sym::atomic_min
819        | sym::atomic_umax
820        | sym::atomic_umin => (1, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], param(0)),
821        sym::atomic_xadd
822        | sym::atomic_xsub
823        | sym::atomic_and
824        | sym::atomic_nand
825        | sym::atomic_or
826        | sym::atomic_xor => (2, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), param(1)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(1)], param(0)),
827        sym::atomic_fence | sym::atomic_singlethreadfence => (0, 1, Vec::new(), tcx.types.unit),
828
829        sym::return_address => (0, 0, ::alloc::vec::Vec::new()vec![], Ty::new_imm_ptr(tcx, tcx.types.unit)),
830
831        other => {
832            tcx.dcx().emit_err(UnrecognizedIntrinsicFunction { span, name: other });
833            return;
834        }
835    };
836    let sig = tcx.mk_fn_sig_rust_abi(inputs, output, safety);
837    let sig = ty::Binder::bind_with_vars(sig, bound_vars);
838    equate_intrinsic_type(tcx, span, intrinsic_id, n_tps, n_lts, n_cts, sig)
839}