angr.analyses.decompiler.peephole_optimizations.arm_cmpf¶
- class angr.analyses.decompiler.peephole_optimizations.arm_cmpf.ARMCmpF¶
Bases:
PeepholeOptimizationExprBaseRewrites tests of ARM NZCV flags.
VEX lowers
vcmptoFPSCR = (FPSCR & 0x0fffffff) | nzcv(CmpF(a, b)) << 28andvmrs APSR_nzcv, fpscrto a COPY of FPSCR’s top nibble into the flags. The condition of the next branch then extracts the flag bits. This optimization rewrites the bit test by evaluating each CmpF outcome (seeing through the FPSCR definition in the same block, or its unique definition elsewhere in the function) and replacing by the equivalent comparison.- NAME = 'Simplifying CmpF on ARM'¶
- expr_classes = (<class 'angr.ailment.expression.Convert'>, <class 'angr.ailment.expression.BinaryOp'>)¶
- __init__(*args, **kwargs)¶