Skip to content

Commit 386fff3

Browse files
committed
FileCheck duplicate_switch_targets.
1 parent f856247 commit 386fff3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/mir-opt/instsimplify_duplicate_switch_targets.rs renamed to tests/mir-opt/instsimplify/duplicate_switch_targets.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
// skip-filecheck
1+
// unit-test: InstSimplify
2+
23
#![feature(custom_mir, core_intrinsics)]
34
#![crate_type = "lib"]
45

56
use std::intrinsics::mir::*;
67

7-
// unit-test: InstSimplify
8-
9-
// EMIT_MIR instsimplify_duplicate_switch_targets.assert_zero.InstSimplify.diff
8+
// EMIT_MIR duplicate_switch_targets.assert_zero.InstSimplify.diff
109
#[custom_mir(dialect = "runtime", phase = "post-cleanup")]
1110
pub unsafe fn assert_zero(x: u8) -> u8 {
11+
// CHECK-LABEL: fn assert_zero(
12+
// CHECK: switchInt({{.*}}) -> [0: {{bb.*}}, otherwise: {{bb.*}}]
1213
mir!(
1314
{
1415
match x {

0 commit comments

Comments
 (0)