Skip to content

Commit d9c34a7

Browse files
authored
Rollup merge of rust-lang#134943 - Shunpoco:116971-mir-opt-issues, r=DianQK
Add FileCheck annotations to mir-opt/issues This resolves a part of rust-lang#116971 . The directory `tests/mir-opt/issues` has only one test issue_75439.rs which should add FileCheck annotations. Originally it was introduced in rust-lang#75580 to confirm that there were duplicated basic blocks against or-patterns, but in rust-lang#123067 the duplication was resolved. So FileCheck should ensure that there is no such duplication any more.
2 parents 2f58193 + 7061551 commit d9c34a7

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)