diff options
author | PeixinQiao <qiaopeixin@huawei.com> | 2022-04-14 21:28:30 +0800 |
---|---|---|
committer | PeixinQiao <qiaopeixin@huawei.com> | 2022-04-14 21:28:30 +0800 |
commit | 0ff322246bcd5c20fdda5e6d1215ee961db2abdc (patch) | |
tree | c84942b1c3bb505d07873ebc6d7da9aedadeb1da /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | e5a5e008256c20f4c2d870d687eda4caef25f9ea (diff) | |
download | llvm-0ff322246bcd5c20fdda5e6d1215ee961db2abdc.zip llvm-0ff322246bcd5c20fdda5e6d1215ee961db2abdc.tar.gz llvm-0ff322246bcd5c20fdda5e6d1215ee961db2abdc.tar.bz2 |
[flang] Fix float-number representation bug
The float number is represented as (-1)^s * 1.f * 2^(-127) for 32-bit,
where s is the signed flag, f is the mantissa. When the exponent bits
are all zeros, the float number is represented as (-1)^s * 0.f *2^(-126)
for 32-bit, in which case, the intPart is '0'.
Reviewed By: Jean Perier
https://reviews.llvm.org/D123673
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions