There are a couple bugs in the current support for this:
-We do all the parsing in single precision so any value less than or
equal to the minimum fp32 is accepted as the minimum value for f64.
-To support fp16 minimum value, getLoadFP32Imm has a special case, but
that causes a miscompile in CodeGen.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
@craig.topper Since we parse the instructions using double precision and use separate lookup tables for fli.h/fli.d now, I think there are no reason not to parse minimum values for FLI.
Comment Actions
The min value for double is very long. I don’t think anyone would use it. I think we should ask on the riscv-isa-manual GitHub before supporting it.
Comment Actions
I think we can at least test min value for half. Also, the min value for double is 2^(-1022) which is a certain number. There will be some circumstances where someone will use its specific value.
clang-format not found in user’s local PATH; not linting file.