[PATCH] D84592: [X86] Add custom lowering for llvm.roundeven with sse4.1.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 25 15:48:51 PDT 2020


craig.topper created this revision.
craig.topper added reviewers: spatel, RKSimon.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

We can use the roundss/sd/ps/pd instructions like we do for
ceil/floor/trunc/rint/nearbyint.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84592

Files:
  llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/fp-roundeven.ll
  llvm/test/CodeGen/X86/fp-strict-scalar-round.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84592.280701.patch
Type: text/x-patch
Size: 48375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200725/e4e547a6/attachment.bin>


More information about the llvm-commits mailing list