1 // This test checks an optimization that is not guaranteed to work. This test case should not block
2 // a future LLVM update.
12 // CHECK-LABEL: @lookup_inc
14 pub fn lookup_inc(buf: &[u8; 5], f: Bar) -> u8 {
15 // FIXME: panic check can be removed by adding the assumes back after https://github.com/rust-lang/rust/pull/98332
16 // CHECK: panic_bounds_check
20 // CHECK-LABEL: @lookup_dec
22 pub fn lookup_dec(buf: &[u8; 5], f: Bar) -> u8 {
23 // FIXME: panic check can be removed by adding the assumes back after https://github.com/rust-lang/rust/pull/98332
24 // CHECK: panic_bounds_check