Skip to content

Commit

Permalink
Unrolled build for rust-lang#134943
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rust-timer authored Mar 1, 2025
2 parents aa3c2d7 + 7061551 commit c1e09a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/mir-opt/issues/issue_75439.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
// 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: [[bb:bb[0-9]+]],
// CHECK-SAME: {{[0-9]+}}: [[bb]],

// 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 c1e09a3

Please sign in to comment.