Skip to content

Commit c71c246

Browse files
committedDec 10, 2023
Auto merge of #118550 - cjgillot:filecheck-const-prop, r=Mark-Simulacrum
Add FileCheck annotations to const_prop tests Unblocks #116012 Advances #116971
2 parents f7253f2 + 30a95b7 commit c71c246

File tree

52 files changed

+290
-253
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+290
-253
lines changed
 

‎tests/mir-opt/const_prop/address_of_pair.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
1-
// skip-filecheck
21
// unit-test: ConstProp
32

43
// EMIT_MIR address_of_pair.fn0.ConstProp.diff
54
pub fn fn0() -> bool {
5+
// CHECK-LABEL: fn fn0(
6+
// CHECK: debug pair => [[pair:_.*]];
7+
// CHECK: debug ptr => [[ptr:_.*]];
8+
// CHECK: debug ret => [[ret:_.*]];
9+
// CHECK: (*[[ptr]]) = const true;
10+
// CHECK-NOT: = const false;
11+
// CHECK-NOT: = const true;
12+
// CHECK: [[tmp:_.*]] = ([[pair]].1: bool);
13+
// CHECK-NOT: = const false;
14+
// CHECK-NOT: = const true;
15+
// CHECK: [[ret]] = Not(move [[tmp]]);
16+
// CHECK-NOT: = const false;
17+
// CHECK-NOT: = const true;
18+
// CHECK: _0 = [[ret]];
619
let mut pair = (1, false);
720
let ptr = core::ptr::addr_of_mut!(pair.1);
821
pair = (1, false);

‎tests/mir-opt/const_prop/aggregate.foo.PreCodegen.after.panic-abort.mir

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)