]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_allocation3.main.ConstProp.after.64bit.mir
Rollup merge of #100240 - cjgillot:noice-structural-match, r=davidtwco
[rust.git] / src / test / mir-opt / const_allocation3.main.ConstProp.after.64bit.mir
1 // MIR for `main` after ConstProp
2
3 fn main() -> () {
4     let mut _0: ();                      // return place in scope 0 at $DIR/const_allocation3.rs:+0:11: +0:11
5     let _1: &Packed;                     // in scope 0 at $DIR/const_allocation3.rs:+1:5: +1:8
6     let mut _2: &&Packed;                // in scope 0 at $DIR/const_allocation3.rs:+1:5: +1:8
7
8     bb0: {
9         StorageLive(_1);                 // scope 0 at $DIR/const_allocation3.rs:+1:5: +1:8
10         StorageLive(_2);                 // scope 0 at $DIR/const_allocation3.rs:+1:5: +1:8
11         _2 = const {alloc1: &&Packed};   // scope 0 at $DIR/const_allocation3.rs:+1:5: +1:8
12                                          // mir::Constant
13                                          // + span: $DIR/const_allocation3.rs:5:5: 5:8
14                                          // + literal: Const { ty: &&Packed, val: Value(Scalar(alloc1)) }
15         _1 = (*_2);                      // scope 0 at $DIR/const_allocation3.rs:+1:5: +1:8
16         StorageDead(_2);                 // scope 0 at $DIR/const_allocation3.rs:+1:8: +1:9
17         StorageDead(_1);                 // scope 0 at $DIR/const_allocation3.rs:+1:8: +1:9
18         nop;                             // scope 0 at $DIR/const_allocation3.rs:+0:11: +2:2
19         return;                          // scope 0 at $DIR/const_allocation3.rs:+2:2: +2:2
20     }
21 }
22
23 alloc1 (static: FOO, size: 8, align: 8) {
24     ╾───────alloc11───────╼                         │ ╾──────╼
25 }
26
27 alloc11 (size: 180, align: 1) {
28     0x00 │ ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab │ ................
29     0x10 │ ab ab ab ab ab ab ab ab ab ab ab ab ╾──alloc6── │ ............╾───
30     0x20 │ ──────────╼ 01 ef cd ab 00 00 00 00 00 00 00 00 │ ───╼............
31     0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
32     0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
33     0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
34     0x60 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
35     0x70 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
36     0x80 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ╾──── │ ..............╾─
37     0x90 │ ─────alloc8─────╼ 00 00 ╾─────alloc9+0x63─────╼ │ ─────╼..╾──────╼
38     0xa0 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
39     0xb0 │ 00 00 00 00                                     │ ....
40 }
41
42 alloc6 (size: 4, align: 4) {
43     2a 00 00 00                                     │ *...
44 }
45
46 alloc8 (fn: main)
47
48 alloc9 (size: 100, align: 1) {
49     0x00 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
50     0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
51     0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
52     0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
53     0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
54     0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
55     0x60 │ 00 00 00 00                                     │ ....
56 }