mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 18:04:13 +00:00
Implement intrinsic "exact_div"
This commit is contained in:
parent
b906adfffe
commit
ea113ec82e
@ -194,9 +194,9 @@ pub fn codegen_intrinsic_call<'a, 'tcx: 'a>(
|
||||
let type_id = CValue::const_val(fx, u64_layout.ty, type_id as i64);
|
||||
ret.write_cvalue(fx, type_id);
|
||||
};
|
||||
_ if intrinsic.starts_with("unchecked_"), (c x, c y) {
|
||||
_ if intrinsic.starts_with("unchecked_") || intrinsic == "exact_div", (c x, c y) {
|
||||
let bin_op = match intrinsic {
|
||||
"unchecked_div" => BinOp::Div,
|
||||
"unchecked_div" | "exact_div" => BinOp::Div,
|
||||
"unchecked_rem" => BinOp::Rem,
|
||||
"unchecked_shl" => BinOp::Shl,
|
||||
"unchecked_shr" => BinOp::Shr,
|
||||
|
Loading…
Reference in New Issue
Block a user