diff options
| author | Mason Reed <mason@vector35.com> | 2024-11-19 20:14:50 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-11-19 20:14:50 -0500 |
| commit | dbd6dc1935bb4a559ffc4f37a341d9a1e829fd52 (patch) | |
| tree | 79e3aaf83cfb2c0d247a2c3c9167f480217b3ead /arch/msp430/src | |
| parent | a4ba9cf4dc35891de29d37fd63b0152da80ba9f4 (diff) | |
Fix MSP430 conditional jump lifting
Diffstat (limited to 'arch/msp430/src')
| -rw-r--r-- | arch/msp430/src/lift.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/msp430/src/lift.rs b/arch/msp430/src/lift.rs index 9bf78a70..feb8ce35 100644 --- a/arch/msp430/src/lift.rs +++ b/arch/msp430/src/lift.rs @@ -150,13 +150,12 @@ macro_rules! conditional_jump { false_label.unwrap_or_else(|| &new_false), ) .append(); - + if true_label.is_none() { $il.mark_label(&mut new_true); + $il.jump($il.const_ptr(true_addr)).append(); } - $il.goto(true_label.unwrap_or_else(|| &new_true)).append(); - if false_label.is_none() { $il.mark_label(&mut new_false); } |
