summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/lower_intrinsics.f_u64.PreCodegen.before.mir
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/test/mir-opt/lower_intrinsics.f_u64.PreCodegen.before.mir
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/mir-opt/lower_intrinsics.f_u64.PreCodegen.before.mir')
-rw-r--r--src/test/mir-opt/lower_intrinsics.f_u64.PreCodegen.before.mir32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/test/mir-opt/lower_intrinsics.f_u64.PreCodegen.before.mir b/src/test/mir-opt/lower_intrinsics.f_u64.PreCodegen.before.mir
new file mode 100644
index 000000000..9e4de2ac0
--- /dev/null
+++ b/src/test/mir-opt/lower_intrinsics.f_u64.PreCodegen.before.mir
@@ -0,0 +1,32 @@
+// MIR for `f_u64` before PreCodegen
+
+fn f_u64() -> () {
+ let mut _0: (); // return place in scope 0 at $DIR/lower_intrinsics.rs:+0:16: +0:16
+ let mut _1: u64; // in scope 0 at $DIR/lower_intrinsics.rs:+1:5: +1:21
+ scope 1 (inlined f_dispatch::<u64>) { // at $DIR/lower_intrinsics.rs:40:5: 40:21
+ debug t => _1; // in scope 1 at $DIR/lower_intrinsics.rs:+5:22: +5:23
+ let _2: (); // in scope 1 at $DIR/lower_intrinsics.rs:+9:9: +9:21
+ let mut _3: u64; // in scope 1 at $DIR/lower_intrinsics.rs:+9:19: +9:20
+ scope 2 (inlined std::mem::size_of::<u64>) { // at $DIR/lower_intrinsics.rs:45:8: 45:32
+ }
+ }
+
+ bb0: {
+ StorageLive(_1); // scope 0 at $DIR/lower_intrinsics.rs:+1:5: +1:21
+ _1 = const 0_u64; // scope 0 at $DIR/lower_intrinsics.rs:+1:5: +1:21
+ StorageLive(_2); // scope 1 at $DIR/lower_intrinsics.rs:+9:9: +9:21
+ StorageLive(_3); // scope 1 at $DIR/lower_intrinsics.rs:+9:19: +9:20
+ _3 = move _1; // scope 1 at $DIR/lower_intrinsics.rs:+9:19: +9:20
+ _2 = f_non_zst::<u64>(move _3) -> bb1; // scope 1 at $DIR/lower_intrinsics.rs:+9:9: +9:21
+ // mir::Constant
+ // + span: $DIR/lower_intrinsics.rs:48:9: 48:18
+ // + literal: Const { ty: fn(u64) {f_non_zst::<u64>}, val: Value(<ZST>) }
+ }
+
+ bb1: {
+ StorageDead(_3); // scope 1 at $DIR/lower_intrinsics.rs:+9:20: +9:21
+ StorageDead(_2); // scope 1 at $DIR/lower_intrinsics.rs:+9:21: +9:22
+ StorageDead(_1); // scope 0 at $DIR/lower_intrinsics.rs:+1:5: +1:21
+ return; // scope 0 at $DIR/lower_intrinsics.rs:+2:2: +2:2
+ }
+}