Skip to content

Commit 5f9d9e5

Browse files
committed
Add FileCheck annotations to mir-opt/issues
From #123067, this test should ensure that there is no duplicated instruction block against or-patterns. Signed-off-by: Shunpoco <[email protected]>
1 parent 7f75bfa commit 5f9d9e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/mir-opt/issues/issue_75439.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
// skip-filecheck
21
// EMIT_MIR issue_75439.foo.MatchBranchSimplification.diff
32
//@ ignore-endian-big
43

54
use std::mem::transmute;
65

76
pub fn foo(bytes: [u8; 16]) -> Option<[u8; 4]> {
7+
// CHECK-LABEL: fn foo(
8+
// CHECK: bb2: {
9+
// CHECK-NEXT: 0: bb3
10+
// CHECK-SAME: 4294901760: bb3
811
// big endian `u32`s
912
let dwords: [u32; 4] = unsafe { transmute(bytes) };
1013
const FF: u32 = 0x0000_ffff_u32.to_be();

0 commit comments

Comments
 (0)