[PATCH] D77384: [WebAssembly] Support single-floating-point immediate value
Dan Gohman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 4 11:09:07 PDT 2020
sunfish added a comment.
On some 32-bit x86 hosts, particularly those that use x87 arithmetic, loading and storing with floating-point types can change the NaN bit pattern. To preserve the bit pattern reliably, `MCOperand` should represent floating-point immediates by representing the bits in `int32_t` for 32-bit and `int64_t` for 64-bit. Codegen and MC don't usually look at the value, but where they do need to interpret it as a floating-point value, they can reinterpret the bits on demand.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77384/new/
https://reviews.llvm.org/D77384
More information about the llvm-commits
mailing list