]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_allocation3.main.ConstProp.after.32bit.mir
Rollup merge of #107100 - compiler-errors:issue-107087, r=lcnr
[rust.git] / tests / mir-opt / const_allocation3.main.ConstProp.after.32bit.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:6:5: 6: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         _0 = const ();                   // 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: 4, align: 4) {
24     ╾─alloc11─╼                                     │ ╾──╼
25 }
26
27 alloc11 (size: 168, 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 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 ╾─alloc8──╼ 00 00 │ ..........╾──╼..
37     0x90 │ ╾─a9+0x63─╼ 00 00 00 00 00 00 00 00 00 00 00 00 │ ╾──╼............
38     0xa0 │ 00 00 00 00 00 00 00 00                         │ ........
39 }
40
41 alloc6 (size: 4, align: 4) {
42     2a 00 00 00                                     │ *...
43 }
44
45 alloc8 (fn: main)
46
47 alloc9 (size: 100, align: 1) {
48     0x00 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
49     0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
50     0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
51     0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
52     0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
53     0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
54     0x60 │ 00 00 00 00                                     │ ....
55 }