[PATCH] D116694: [RISCV] Add strictfp support for compares.

Kevin P. Neal via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 5 15:07:45 PST 2022


kpn added a comment.

In IRBuilder.h we have this:

  // Create a signaling floating-point comparison (i.e. one that raises an FP
  // exception whenever an input is any NaN, signaling or quiet).
  // Note that this differs from CreateFCmp only if IsFPConstrained is true.
  Value *CreateFCmpS(CmpInst::Predicate P, Value *LHS, Value *RHS,

and

  // Create a quiet floating-point comparison (i.e. one that raises an FP
  // exception only in the case where an input is a signaling NaN).
  // Note that this differs from CreateFCmpS only if IsFPConstrained is true.
  Value *CreateFCmp(CmpInst::Predicate P, Value *LHS, Value *RHS,

So I think the answer to your question is "yes" based on IRBuilder.h.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116694/new/

https://reviews.llvm.org/D116694



More information about the llvm-commits mailing list