angr.analyses.decompiler.optimization_passes.float128_pair_coalescer

class angr.analyses.decompiler.optimization_passes.float128_pair_coalescer.Float128PairCoalescer

Bases: OptimizationPass

Coalesce binary128 (long double) values that VEX splits across a pair of 64-bit FP registers.

s390x keeps a long double in a register pair (f0:f2, f4:f6, …). VEX reads it with F64HLtoF128(hi, lo) and writes it back with F128HItoF64 / F128LOtoF64, so every long double turns into two 64-bit halves that are concatenated at each use. This pass gives each such pair one 128-bit variable, defined by the 128-bit operation that produced the halves or by one 16-byte load, and rewrites the uses: concatenations, stores of both halves, and spills of both halves to adjacent stack slots. 128-bit constants built from two 64-bit halves are folded too.

ARCHES = ['S390X']
PLATFORMS = None
STAGE: OptimizationPassStage = 6
NAME = 'Coalesce binary128 register pairs'
DESCRIPTION = 'Coalesce binary128 (long double) values that VEX splits across a pair of 64-bit FP registers.\n\n    s390x keeps a long double in a register pair (f0:f2, f4:f6, ...). VEX reads it with F64HLtoF128(hi, lo) and writes\n    it back with F128HItoF64 / F128LOtoF64, so every long double turns into two 64-bit halves that are concatenated at\n    each use. This pass gives each such pair one 128-bit variable, defined by the 128-bit operation that produced the\n    halves or by one 16-byte load, and rewrites the uses: concatenations, stores of both halves, and spills of both\n    halves to adjacent stack slots. 128-bit constants built from two 64-bit halves are folded too.'
__init__(func, *args, **kwargs)