[PATCH] D77384: [WebAssembly] Support single-floating-point immediate value

Yuta Saito via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 3 05:52:27 PDT 2020


kateinoigakukun created this revision.
kateinoigakukun added reviewers: dschuff, sunfish, sbc100.
kateinoigakukun added a project: LLVM.
Herald added subscribers: llvm-commits, aheejin, hiraditya, jgravelle-google.

As mentioned in TODO comment, casting double to float causes NaNs to change bits.
To avoid the change, this patch adds support for single-floating-point immediate value on MachineCode.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77384

Files:
  llvm/include/llvm/MC/MCInst.h
  llvm/include/llvm/MC/MCInstBuilder.h
  llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp
  llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp
  llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
  llvm/test/CodeGen/WebAssembly/snan_literal.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77384.254757.patch
Type: text/x-patch
Size: 6948 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200403/68237b5f/attachment.bin>


More information about the llvm-commits mailing list