summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/if_condition_int.opt_char.SimplifyComparisonIntegral.diff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mir-opt/if_condition_int.opt_char.SimplifyComparisonIntegral.diff')
-rw-r--r--tests/mir-opt/if_condition_int.opt_char.SimplifyComparisonIntegral.diff6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/mir-opt/if_condition_int.opt_char.SimplifyComparisonIntegral.diff b/tests/mir-opt/if_condition_int.opt_char.SimplifyComparisonIntegral.diff
index 837841b00..fedbd6cdd 100644
--- a/tests/mir-opt/if_condition_int.opt_char.SimplifyComparisonIntegral.diff
+++ b/tests/mir-opt/if_condition_int.opt_char.SimplifyComparisonIntegral.diff
@@ -12,21 +12,19 @@
StorageLive(_3);
_3 = _1;
- _2 = Eq(move _3, const 'x');
-- StorageDead(_3);
- switchInt(move _2) -> [0: bb2, otherwise: bb1];
+ nop;
-+ nop;
+ switchInt(move _3) -> [120: bb1, otherwise: bb2];
}
bb1: {
-+ StorageDead(_3);
+ StorageDead(_3);
_0 = const 0_u32;
goto -> bb3;
}
bb2: {
-+ StorageDead(_3);
+ StorageDead(_3);
_0 = const 1_u32;
goto -> bb3;
}