diff options
| author | Sam Tebbs <samuel.tebbs@arm.com> | 2021-06-21 16:00:11 +0100 |
|---|---|---|
| committer | Sam Tebbs <samuel.tebbs@arm.com> | 2021-07-01 15:10:40 +0100 |
| commit | 24d76419d6b7a3191ec1f4bfc33a640e716f11c8 (patch) | |
| tree | f2ac38c1823baf92850c1a88c47bd899edd9d15c /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | c475efe9162437045d7292befc5e4d35ad5c4351 (diff) | |
[ARM] Transform a floating-point to fixed-point conversion to a VCVT_fix
Much like fixed-point to floating-point conversion, the converse can
also be transformed into a fixed-point VCVT. This patch transforms
multiplications of floating point numbers by 2^n into a VCVT_fix. The
exception is that a float to fixed conversion with 1 fractional bit
ends up being an FADD (FADD(x, x) emulates FMUL(x, 2)) rather than an FMUL so there is a special case for that. This patch also moves the code from https://reviews.llvm.org/D103903 into a separate function as fixed to float and float to fixed are very similar.
Differential Revision: https://reviews.llvm.org/D104793
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
