[PATCH] D123660: [X86] Covert unsigned int 0 to float-point with FILD instruction.

LiuChen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 00:34:31 PDT 2022


LiuChen3 created this revision.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: All.
LiuChen3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

unsinged int 0 will be convert to float/double -0.0 when the rounding
mode is set to 'FE_DOWNWARD'. Using FILD instruction instead of SSE
instructions on 32-bit target if the strictfp is enabled.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123660

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/fp-intrinsics.ll
  llvm/test/CodeGen/X86/fp-strict-scalar-inttofp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123660.422418.patch
Type: text/x-patch
Size: 7322 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220413/825feed0/attachment.bin>


More information about the llvm-commits mailing list