All floating point values in registers are in double precision
representation. In order to materialize the correct single precision
value, we need to convert the APFloat that represents the value
to double precision first.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/PowerPC/PPCInstrInfo.td | ||
---|---|---|
415 | IIUC It is not possible for a value to be representable in single precision but not double precision. I suppose we can add: |
Comment Actions
LGTM. Thanks.
llvm/lib/Target/PowerPC/PPCInstrInfo.td | ||
---|---|---|
415 | Thanks. Agreed. If we decided not adding the assert, maybe just change the |
Do we need to check LosesInfo to ensure lossless conversion?