[PATCH] D104854: Introduce intrinsic llvm.isnan
    Thomas Preud'homme via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Fri Jun 25 04:14:01 PDT 2021
    
    
  
thopre added a comment.
LGTM (besides comment fix) but I'm not too familiar with the vector side of things
================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:6967
+  // NaN has all exp bits set and a non zero significand. Therefore:
+  // isnan(V) == ((exp mask - (abs(V) & exp mask)) < 0)
+  unsigned BitSize = OperandVT.getScalarSizeInBits();
----------------
I seem to have made a mistake when I wrote this.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104854/new/
https://reviews.llvm.org/D104854
    
    
More information about the cfe-commits
mailing list