summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/enum_cast.offsetty.built.after.mir
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:42 +0000
commit837b550238aa671a591ccf282dddeab29cadb206 (patch)
tree914b6b8862bace72bd3245ca184d374b08d8a672 /tests/mir-opt/building/enum_cast.offsetty.built.after.mir
parentAdding debian version 1.70.0+dfsg2-1. (diff)
downloadrustc-837b550238aa671a591ccf282dddeab29cadb206.tar.xz
rustc-837b550238aa671a591ccf282dddeab29cadb206.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/mir-opt/building/enum_cast.offsetty.built.after.mir')
-rw-r--r--tests/mir-opt/building/enum_cast.offsetty.built.after.mir26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/mir-opt/building/enum_cast.offsetty.built.after.mir b/tests/mir-opt/building/enum_cast.offsetty.built.after.mir
new file mode 100644
index 000000000..7b2b583f2
--- /dev/null
+++ b/tests/mir-opt/building/enum_cast.offsetty.built.after.mir
@@ -0,0 +1,26 @@
+// MIR for `offsetty` after built
+
+fn offsetty(_1: NotStartingAtZero) -> u32 {
+ debug x => _1; // in scope 0 at $DIR/enum_cast.rs:+0:13: +0:14
+ let mut _0: u32; // return place in scope 0 at $DIR/enum_cast.rs:+0:38: +0:41
+ let _2: NotStartingAtZero; // in scope 0 at $DIR/enum_cast.rs:+1:5: +1:6
+ let mut _3: isize; // in scope 0 at $DIR/enum_cast.rs:+1:5: +1:6
+ let mut _4: u8; // in scope 0 at $DIR/enum_cast.rs:+1:5: +1:13
+ let mut _5: bool; // in scope 0 at $DIR/enum_cast.rs:+1:5: +1:13
+ let mut _6: bool; // in scope 0 at $DIR/enum_cast.rs:+1:5: +1:13
+ let mut _7: bool; // in scope 0 at $DIR/enum_cast.rs:+1:5: +1:13
+
+ bb0: {
+ StorageLive(_2); // scope 0 at $DIR/enum_cast.rs:+1:5: +1:6
+ _2 = move _1; // scope 0 at $DIR/enum_cast.rs:+1:5: +1:6
+ _3 = discriminant(_2); // scope 0 at $DIR/enum_cast.rs:+1:5: +1:13
+ _4 = _3 as u8 (IntToInt); // scope 0 at $DIR/enum_cast.rs:+1:5: +1:13
+ _5 = Ge(_4, const 4_u8); // scope 0 at $DIR/enum_cast.rs:+1:5: +1:13
+ _6 = Le(_4, const 8_u8); // scope 0 at $DIR/enum_cast.rs:+1:5: +1:13
+ _7 = BitAnd(move _5, move _6); // scope 0 at $DIR/enum_cast.rs:+1:5: +1:13
+ assume(move _7); // scope 0 at $DIR/enum_cast.rs:+1:5: +1:13
+ _0 = move _3 as u32 (IntToInt); // scope 0 at $DIR/enum_cast.rs:+1:5: +1:13
+ StorageDead(_2); // scope 0 at $DIR/enum_cast.rs:+1:12: +1:13
+ return; // scope 0 at $DIR/enum_cast.rs:+2:2: +2:2
+ }
+}