Sign in
rust
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
codegen-llvm
/
issues
/
issue-118392.rs
blob: 07de8d9b237a7fbe03e1a1fe83c9de0216692973 [
file
] [
log
] [
blame
]
//@ compile-flags: -Copt-level=3
#![
crate_type
=
"lib"
]
// CHECK-LABEL: @div2
// CHECK: ashr i32 %a, 1
// CHECK-NEXT: ret i32
#[
no_mangle
]
pub
fn
div2
(
a
:
i32
)
->
i32
{
a
.
div_euclid
(
2
)
}