3 // only-64bit (because the LLVM type of i64 for usize shows up)
4 // ignore-debug: the debug assertions get in the way
7 #![feature(slice_as_chunks)]
9 // CHECK-LABEL: @chunks4
11 pub fn chunks4(x: &[u8]) -> &[[u8; 4]] {
13 // CHECK-NEXT: lshr i64 %x.1, 2
22 // CHECK-LABEL: @chunks4_with_remainder
24 pub fn chunks4_with_remainder(x: &[u8]) -> (&[[u8; 4]], &[u8]) {
25 // CHECK: and i64 %x.1, -4
26 // CHECK: and i64 %x.1, 3