diff options
| author | Alexander Shaposhnikov <ashaposhnikov@google.com> | 2023-10-28 10:20:18 +0000 |
|---|---|---|
| committer | Alexander Shaposhnikov <ashaposhnikov@google.com> | 2023-10-28 10:20:57 +0000 |
| commit | d4b8572f11869fd47a4606ea91ee59d2833ce23c (patch) | |
| tree | 33f1eec747ace0f90071ec56a6c0d0ef054af294 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 2228b35f93256449ca2524ed38dd068b87163efc (diff) | |
[compiler-rt] Fix src_rep_t_clz and clz_in_sig_frac
This is a follow-up to 910a4bf5b.
1. __builtin_clz takes unsigned int, thus for uint16_t
src_rep_t_clz can't use it directly but should subtract 16
(leading 16 bits of the promoted argument are zero).
2. Fix (and simplify) clz_in_sig_frac.
Test plan: ninja check-compiler-rt
(extendhfsf2_test.c and extenddftf2_test.c)
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
