angr.analyses.decompiler.peephole_optimizations.sse_scalar_lowering¶
- class angr.analyses.decompiler.peephole_optimizations.sse_scalar_lowering.SSEVectorConvertLowering¶
Bases:
PeepholeOptimizationExprBaseLower a lane-wise conversion of a scalar that was zero-widened into lane 0.
ConvV(Conv(N->128I, x)) -> Conv(M->128I, Convert(N->M, x)); upper lanes stay zero.
- NAME = 'SSE lane-wise conversion of a widened scalar'¶
- expr_classes = (<class 'angr.ailment.expression.Convert'>,)¶
- class angr.analyses.decompiler.peephole_optimizations.sse_scalar_lowering.SSEScalarLowering¶
Bases:
PeepholeOptimizationExprBaseLower SSE scalar-in-vector ops to scalar floating-point arithmetic.
VEX represents SSE scalar ops (addss, mulss, addsd, …) as full-width 128-bit vector operations (Add32F0x4, Add64F0x2, …) followed by a read of the lower element. After AIL lifting and SSAIL propagation this produces:
Extract(BinaryOp("XxxV", ..., fp=True), N@0)
This pass rewrites such expressions to their scalar equivalents so that type inference, constant folding, and codegen all handle them correctly.
- NAME = 'SSE scalar-in-vector op lowering'¶
- expr_classes = (<class 'angr.ailment.expression.Extract'>,)¶