summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/div_overflow.const_divisor.PreCodegen.after.mir
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/mir-opt/div_overflow.const_divisor.PreCodegen.after.mir11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/mir-opt/div_overflow.const_divisor.PreCodegen.after.mir b/tests/mir-opt/div_overflow.const_divisor.PreCodegen.after.mir
new file mode 100644
index 000000000..7b7ab1978
--- /dev/null
+++ b/tests/mir-opt/div_overflow.const_divisor.PreCodegen.after.mir
@@ -0,0 +1,11 @@
+// MIR for `const_divisor` after PreCodegen
+
+fn const_divisor(_1: i32) -> i32 {
+ debug a => _1; // in scope 0 at $DIR/div_overflow.rs:+0:22: +0:23
+ let mut _0: i32; // return place in scope 0 at $DIR/div_overflow.rs:+0:33: +0:36
+
+ bb0: {
+ _0 = Div(move _1, const 256_i32); // scope 0 at $DIR/div_overflow.rs:+1:5: +1:12
+ return; // scope 0 at $DIR/div_overflow.rs:+2:2: +2:2
+ }
+}