[PATCH] D138696: [PowerPC] Exploit test data class instruction for isinf/iszero

Qiu Chaofan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 25 01:48:15 PST 2022


qiucf created this revision.
qiucf added reviewers: nemanjai, shchenz, PowerPC.
Herald added subscribers: kbarton, hiraditya.
Herald added a project: All.
qiucf requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Since ISA 3.0, we have test data class instruction (`x(s|v)tstdc(s|d|q)p`) to classify a floating point value, which can be used to combine common FP classify operations like `isinf` or zero comparison.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138696

Files:
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/test/CodeGen/PowerPC/fp-classify.ll
  llvm/test/CodeGen/PowerPC/is_fpclass.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138696.477887.patch
Type: text/x-patch
Size: 8569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221125/379b134c/attachment.bin>


More information about the llvm-commits mailing list