Skip to content

Commit 7061551

Browse files
committed
Add FileCheck annotations to mir-opt/issues
From #123067, this test should ensure that there is no duplicated basic block against or-patterns. Signed-off-by: Shunpoco <tkngsnsk313320@gmail.com>
1 parent 7f75bfa commit 7061551

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/mir-opt/issues/issue_75439.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
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: [[bb:bb[0-9]+]],
10+
// CHECK-SAME: {{[0-9]+}}: [[bb]],
11+
812
// big endian `u32`s
913
let dwords: [u32; 4] = unsafe { transmute(bytes) };
1014
const FF: u32 = 0x0000_ffff_u32.to_be();

0 commit comments

Comments
 (0)