mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
58f8739d55
MIR dumped before/after the dummy `PreCodegen` pass should be identical to MIR dumped after the phase transition to `runtime-optimized`.
17 lines
451 B
Rust
17 lines
451 B
Rust
//@ compile-flags: -O -Zmir-opt-level=2 -Cdebuginfo=0
|
|
//@ needs-unwind
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
// EMIT_MIR tuple_ord.demo_le_total.runtime-optimized.after.mir
|
|
pub fn demo_le_total(a: &(u16, i16), b: &(u16, i16)) -> bool {
|
|
// CHECK-LABEL: demo_le_total
|
|
a <= b
|
|
}
|
|
|
|
// EMIT_MIR tuple_ord.demo_ge_partial.runtime-optimized.after.mir
|
|
pub fn demo_ge_partial(a: &(f32, f32), b: &(f32, f32)) -> bool {
|
|
// CHECK-LABEL: demo_ge_partial
|
|
a >= b
|
|
}
|