================
@@ -5553,6 +5553,37 @@ void computeKnownFPClass(const Value *V, const APInt 
&DemandedElts,
 
       // TODO: Copy inf handling from instructions
       break;
+    case Intrinsic::amdgcn_rsq: {
+      KnownFPClass KnownSrc;
+      // The only negative value that can be returned is -0 for -0 inputs.
+      Known.knownNot(fcNegInf | fcNegSubnormal | fcNegNormal);
----------------
dtcxzyw wrote:

`rsq(-0.0) = -inf`.

https://github.com/llvm/llvm-project/pull/171837
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to