Skip to content

Commit

Permalink
Add FileCheck annotations to mir-opt/issues
Browse files Browse the repository at this point in the history
From #123067, this test should ensure that there is no duplicated instruction block against or-patterns.

Signed-off-by: Shunpoco <[email protected]>
  • Loading branch information
Shunpoco committed Dec 30, 2024
1 parent 7f75bfa commit 5f9d9e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/mir-opt/issues/issue_75439.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
// skip-filecheck
// EMIT_MIR issue_75439.foo.MatchBranchSimplification.diff
//@ ignore-endian-big

use std::mem::transmute;

pub fn foo(bytes: [u8; 16]) -> Option<[u8; 4]> {
// CHECK-LABEL: fn foo(
// CHECK: bb2: {
// CHECK-NEXT: 0: bb3
// CHECK-SAME: 4294901760: bb3
// big endian `u32`s
let dwords: [u32; 4] = unsafe { transmute(bytes) };
const FF: u32 = 0x0000_ffff_u32.to_be();
Expand Down

0 comments on commit 5f9d9e5

Please sign in to comment.