]>
git.proxmox.com Git - rustc.git/blob - tests/codegen/match-unoptimized.rs
1 // compile-flags: -C no-prepopulate-passes -Copt-level=0
11 // For unoptimized code we produce a `br` instead of a `switch`. Compare with
12 // `tests/codegen/match-optimized.rs`
14 // CHECK-LABEL: @exhaustive_match_2
16 pub fn exhaustive_match_2(e
: E2
) -> u8 {
17 // CHECK: %[[CMP:.+]] = icmp eq i16 %{{.+}}, 13
18 // CHECK-NEXT: br i1 %[[CMP:.+]],