@@ -301,14 +301,14 @@ where
301
301
Divu ( Operation < ' func , M , F , operation:: BinaryOp > ) ,
302
302
Divs ( Operation < ' func , M , F , operation:: BinaryOp > ) ,
303
303
304
- DivuDp ( Operation < ' func , M , F , operation:: DoublePrecDivOp > ) ,
305
- DivsDp ( Operation < ' func , M , F , operation:: DoublePrecDivOp > ) ,
304
+ DivuDp ( Operation < ' func , M , F , operation:: BinaryOp > ) ,
305
+ DivsDp ( Operation < ' func , M , F , operation:: BinaryOp > ) ,
306
306
307
307
Modu ( Operation < ' func , M , F , operation:: BinaryOp > ) ,
308
308
Mods ( Operation < ' func , M , F , operation:: BinaryOp > ) ,
309
309
310
- ModuDp ( Operation < ' func , M , F , operation:: DoublePrecDivOp > ) ,
311
- ModsDp ( Operation < ' func , M , F , operation:: DoublePrecDivOp > ) ,
310
+ ModuDp ( Operation < ' func , M , F , operation:: BinaryOp > ) ,
311
+ ModsDp ( Operation < ' func , M , F , operation:: BinaryOp > ) ,
312
312
313
313
Neg ( Operation < ' func , M , F , operation:: UnaryOp > ) ,
314
314
Not ( Operation < ' func , M , F , operation:: UnaryOp > ) ,
@@ -538,7 +538,6 @@ where
538
538
LowLevelILExpressionKind :: UnimplMem ( Operation :: new ( function, op, index) )
539
539
}
540
540
541
- // TODO: LLIL_REG_STACK_PUSH
542
541
_ => {
543
542
// #[cfg(debug_assertions)]
544
543
log:: error!(
@@ -568,7 +567,6 @@ where
568
567
}
569
568
570
569
_ => Some ( self . raw_struct ( ) . size ) ,
571
- //TestBit(Operation<'func, M, F, operation::TestBit>), // TODO
572
570
}
573
571
}
574
572
@@ -607,7 +605,8 @@ where
607
605
Add ( ref op) | Sub ( ref op) | And ( ref op) | Or ( ref op) | Xor ( ref op) | Lsl ( ref op)
608
606
| Lsr ( ref op) | Asr ( ref op) | Rol ( ref op) | Ror ( ref op) | Mul ( ref op)
609
607
| MulsDp ( ref op) | MuluDp ( ref op) | Divu ( ref op) | Divs ( ref op) | Modu ( ref op)
610
- | Mods ( ref op) | Fadd ( ref op) | Fsub ( ref op) | Fmul ( ref op) | Fdiv ( ref op) => Some ( op) ,
608
+ | Mods ( ref op) | Fadd ( ref op) | Fsub ( ref op) | Fmul ( ref op) | Fdiv ( ref op)
609
+ | DivuDp ( ref op) | DivsDp ( ref op) | ModuDp ( ref op) | ModsDp ( ref op) => Some ( op) ,
611
610
_ => None ,
612
611
}
613
612
}
@@ -621,17 +620,6 @@ where
621
620
}
622
621
}
623
622
624
- pub fn as_double_prec_div_op (
625
- & self ,
626
- ) -> Option < & Operation < ' func , M , F , operation:: DoublePrecDivOp > > {
627
- use self :: LowLevelILExpressionKind :: * ;
628
-
629
- match * self {
630
- DivuDp ( ref op) | DivsDp ( ref op) | ModuDp ( ref op) | ModsDp ( ref op) => Some ( op) ,
631
- _ => None ,
632
- }
633
- }
634
-
635
623
pub fn as_unary_op ( & self ) -> Option < & Operation < ' func , M , F , operation:: UnaryOp > > {
636
624
use self :: LowLevelILExpressionKind :: * ;
637
625
@@ -675,15 +663,11 @@ where
675
663
| Xor ( ref op) | Lsl ( ref op) | Lsr ( ref op) | Asr ( ref op) | Rol ( ref op) | Ror ( ref op)
676
664
| Mul ( ref op) | MulsDp ( ref op) | MuluDp ( ref op) | Divu ( ref op) | Divs ( ref op)
677
665
| Modu ( ref op) | Mods ( ref op) | Fadd ( ref op) | Fsub ( ref op) | Fmul ( ref op)
678
- | Fdiv ( ref op) | TestBit ( ref op) => {
666
+ | DivuDp ( ref op) | DivsDp ( ref op) | ModuDp ( ref op) | ModsDp ( ref op) | Fdiv ( ref op)
667
+ | TestBit ( ref op) => {
679
668
visit ! ( op. left( ) ) ;
680
669
visit ! ( op. right( ) ) ;
681
670
}
682
- DivuDp ( ref op) | DivsDp ( ref op) | ModuDp ( ref op) | ModsDp ( ref op) => {
683
- visit ! ( op. high( ) ) ;
684
- visit ! ( op. low( ) ) ;
685
- visit ! ( op. right( ) ) ;
686
- }
687
671
Neg ( ref op) | Not ( ref op) | Sx ( ref op) | Zx ( ref op) | LowPart ( ref op)
688
672
| BoolToInt ( ref op) | Fsqrt ( ref op) | Fneg ( ref op) | Fabs ( ref op)
689
673
| FloatToInt ( ref op) | IntToFloat ( ref op) | FloatConv ( ref op) | RoundToInt ( ref op)
0 commit comments