2024-02-22 06:10:29 -06:00
|
|
|
//@ compile-flags: -O
|
2023-04-03 09:37:42 -05:00
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
#[no_mangle]
|
|
|
|
pub fn test(a: i32, b: i32) -> bool {
|
|
|
|
// CHECK-LABEL: @test(
|
|
|
|
// CHECK: ret i1 true
|
|
|
|
let c1 = (a >= 0) && (a <= 10);
|
|
|
|
let c2 = (b >= 0) && (b <= 20);
|
|
|
|
|
2024-05-28 23:11:20 -05:00
|
|
|
if c1 & c2 { a + 100 != b } else { true }
|
2023-04-03 09:37:42 -05:00
|
|
|
}
|