]>
git.proxmox.com Git - rustc.git/blob - src/test/codegen/integer-cmp.rs
1 // This is test for more optimal Ord implementation for integers.
2 // See <https://github.com/rust-lang/rust/issues/63758> for more info.
4 // compile-flags: -C opt-level=3
8 use std
::cmp
::Ordering
;
10 // CHECK-LABEL: @cmp_signed
12 pub fn cmp_signed(a
: i64, b
: i64) -> Ordering
{
20 // CHECK-LABEL: @cmp_unsigned
22 pub fn cmp_unsigned(a
: u32, b
: u32) -> Ordering
{