Skip to content

Commit

Permalink
bless mir-opt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CAD97 committed Apr 22, 2024
1 parent 49280f7 commit 473b997
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions tests/mir-opt/issue_101973.inner.GVN.panic-abort.diff
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
bb2: {
_6 = Shl(move _7, const 1_i32);
StorageDead(_7);
- _3 = rotate_right::<u32>(move _4, move _6) -> [return: bb3, unwind unreachable];
+ _3 = rotate_right::<u32>(_14, move _6) -> [return: bb3, unwind unreachable];
- _3 = std::intrinsics::rotate_right::<u32>(move _4, move _6) -> [return: bb3, unwind unreachable];
+ _3 = std::intrinsics::rotate_right::<u32>(_14, move _6) -> [return: bb3, unwind unreachable];
}

bb3: {
Expand Down
4 changes: 2 additions & 2 deletions tests/mir-opt/issue_101973.inner.GVN.panic-unwind.diff
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
bb2: {
_6 = Shl(move _7, const 1_i32);
StorageDead(_7);
- _3 = rotate_right::<u32>(move _4, move _6) -> [return: bb3, unwind unreachable];
+ _3 = rotate_right::<u32>(_14, move _6) -> [return: bb3, unwind unreachable];
- _3 = std::intrinsics::rotate_right::<u32>(move _4, move _6) -> [return: bb3, unwind unreachable];
+ _3 = std::intrinsics::rotate_right::<u32>(_14, move _6) -> [return: bb3, unwind unreachable];
}

bb3: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
_5 = _1;
StorageLive(_6);
_6 = _2;
- _4 = unchecked_add::<i32>(move _5, move _6) -> [return: bb1, unwind unreachable];
- _4 = std::intrinsics::unchecked_add::<i32>(move _5, move _6) -> [return: bb1, unwind unreachable];
+ _4 = AddUnchecked(move _5, move _6);
+ goto -> bb1;
}
Expand All @@ -80,7 +80,7 @@
_8 = _1;
StorageLive(_9);
_9 = _2;
- _7 = unchecked_sub::<i32>(move _8, move _9) -> [return: bb2, unwind unreachable];
- _7 = std::intrinsics::unchecked_sub::<i32>(move _8, move _9) -> [return: bb2, unwind unreachable];
+ _7 = SubUnchecked(move _8, move _9);
+ goto -> bb2;
}
Expand All @@ -93,7 +93,7 @@
_11 = _1;
StorageLive(_12);
_12 = _2;
- _10 = unchecked_mul::<i32>(move _11, move _12) -> [return: bb3, unwind unreachable];
- _10 = std::intrinsics::unchecked_mul::<i32>(move _11, move _12) -> [return: bb3, unwind unreachable];
+ _10 = MulUnchecked(move _11, move _12);
+ goto -> bb3;
}
Expand Down Expand Up @@ -132,7 +132,7 @@
_20 = _1;
StorageLive(_21);
_21 = _2;
- _19 = unchecked_shl::<i32, i32>(move _20, move _21) -> [return: bb6, unwind unreachable];
- _19 = std::intrinsics::unchecked_shl::<i32, i32>(move _20, move _21) -> [return: bb6, unwind unreachable];
+ _19 = ShlUnchecked(move _20, move _21);
+ goto -> bb6;
}
Expand All @@ -145,7 +145,7 @@
_23 = _1;
StorageLive(_24);
_24 = _2;
- _22 = unchecked_shr::<i32, i32>(move _23, move _24) -> [return: bb7, unwind unreachable];
- _22 = std::intrinsics::unchecked_shr::<i32, i32>(move _23, move _24) -> [return: bb7, unwind unreachable];
+ _22 = ShrUnchecked(move _23, move _24);
+ goto -> bb7;
}
Expand All @@ -158,7 +158,7 @@
_26 = _1;
StorageLive(_27);
_27 = _3;
- _25 = unchecked_shl::<i32, u32>(move _26, move _27) -> [return: bb8, unwind unreachable];
- _25 = std::intrinsics::unchecked_shl::<i32, u32>(move _26, move _27) -> [return: bb8, unwind unreachable];
+ _25 = ShlUnchecked(move _26, move _27);
+ goto -> bb8;
}
Expand All @@ -171,7 +171,7 @@
_29 = _1;
StorageLive(_30);
_30 = _3;
- _28 = unchecked_shr::<i32, u32>(move _29, move _30) -> [return: bb9, unwind unreachable];
- _28 = std::intrinsics::unchecked_shr::<i32, u32>(move _29, move _30) -> [return: bb9, unwind unreachable];
+ _28 = ShrUnchecked(move _29, move _30);
+ goto -> bb9;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
_5 = _1;
StorageLive(_6);
_6 = _2;
- _4 = unchecked_add::<i32>(move _5, move _6) -> [return: bb1, unwind unreachable];
- _4 = std::intrinsics::unchecked_add::<i32>(move _5, move _6) -> [return: bb1, unwind unreachable];
+ _4 = AddUnchecked(move _5, move _6);
+ goto -> bb1;
}
Expand All @@ -80,7 +80,7 @@
_8 = _1;
StorageLive(_9);
_9 = _2;
- _7 = unchecked_sub::<i32>(move _8, move _9) -> [return: bb2, unwind unreachable];
- _7 = std::intrinsics::unchecked_sub::<i32>(move _8, move _9) -> [return: bb2, unwind unreachable];
+ _7 = SubUnchecked(move _8, move _9);
+ goto -> bb2;
}
Expand All @@ -93,7 +93,7 @@
_11 = _1;
StorageLive(_12);
_12 = _2;
- _10 = unchecked_mul::<i32>(move _11, move _12) -> [return: bb3, unwind unreachable];
- _10 = std::intrinsics::unchecked_mul::<i32>(move _11, move _12) -> [return: bb3, unwind unreachable];
+ _10 = MulUnchecked(move _11, move _12);
+ goto -> bb3;
}
Expand Down Expand Up @@ -132,7 +132,7 @@
_20 = _1;
StorageLive(_21);
_21 = _2;
- _19 = unchecked_shl::<i32, i32>(move _20, move _21) -> [return: bb6, unwind unreachable];
- _19 = std::intrinsics::unchecked_shl::<i32, i32>(move _20, move _21) -> [return: bb6, unwind unreachable];
+ _19 = ShlUnchecked(move _20, move _21);
+ goto -> bb6;
}
Expand All @@ -145,7 +145,7 @@
_23 = _1;
StorageLive(_24);
_24 = _2;
- _22 = unchecked_shr::<i32, i32>(move _23, move _24) -> [return: bb7, unwind unreachable];
- _22 = std::intrinsics::unchecked_shr::<i32, i32>(move _23, move _24) -> [return: bb7, unwind unreachable];
+ _22 = ShrUnchecked(move _23, move _24);
+ goto -> bb7;
}
Expand All @@ -158,7 +158,7 @@
_26 = _1;
StorageLive(_27);
_27 = _3;
- _25 = unchecked_shl::<i32, u32>(move _26, move _27) -> [return: bb8, unwind unreachable];
- _25 = std::intrinsics::unchecked_shl::<i32, u32>(move _26, move _27) -> [return: bb8, unwind unreachable];
+ _25 = ShlUnchecked(move _26, move _27);
+ goto -> bb8;
}
Expand All @@ -171,7 +171,7 @@
_29 = _1;
StorageLive(_30);
_30 = _3;
- _28 = unchecked_shr::<i32, u32>(move _29, move _30) -> [return: bb9, unwind unreachable];
- _28 = std::intrinsics::unchecked_shr::<i32, u32>(move _29, move _30) -> [return: bb9, unwind unreachable];
+ _28 = ShrUnchecked(move _29, move _30);
+ goto -> bb9;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
_10 = _1;
StorageLive(_11);
_11 = _2;
- _9 = wrapping_mul::<i32>(move _10, move _11) -> [return: bb3, unwind unreachable];
- _9 = std::intrinsics::wrapping_mul::<i32>(move _10, move _11) -> [return: bb3, unwind unreachable];
+ _9 = Mul(move _10, move _11);
+ goto -> bb3;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
_10 = _1;
StorageLive(_11);
_11 = _2;
- _9 = wrapping_mul::<i32>(move _10, move _11) -> [return: bb3, unwind unreachable];
- _9 = std::intrinsics::wrapping_mul::<i32>(move _10, move _11) -> [return: bb3, unwind unreachable];
+ _9 = Mul(move _10, move _11);
+ goto -> bb3;
}
Expand Down

0 comments on commit 473b997

Please sign in to comment.